Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid double logging in debug console #6827

Merged

Conversation

redneck-f25
Copy link
Contributor

If running in the IDE (VSCodium) with an attached debugger all console.log()s appear twice in the Debug Console.

/usr/bin/node ./../MeshCentral/meshcentral.js
ERR: Debugger attached.                                                      # meshcentral.js:667
MeshCentral v1.1.39, Hybrid (LAN + WAN) mode.                                # meshcentral.js:1829
MeshCentral v1.1.39, Hybrid (LAN + WAN) mode.                                # meshcentral.js:662
MeshCentral Prometheus server running on port 9464.                          # monitoring.js:63
MeshCentral Prometheus server running on port 9464.                          # meshcentral.js:662
Loaded web certificate from "https://10.28.248.17:443", host: "example.org"  # meshcentral.js:2241
  SHA384 cert hash: 8fe...ec7                                                # meshcentral.js:2242
  SHA384 key hash: 66e...93a                                                 # meshcentral.js:2243
Loaded web certificate from "https://10.28.248.17:443", host: "example.org"  # meshcentral.js:662
  SHA384 cert hash: 8fe...ec7                                                # meshcentral.js:662
  SHA384 key hash: 66e...93a                                                 # meshcentral.js:662
MeshCentral HTTP server running on port 9846, alias port 443.                # meshcentral.js:662
MeshCentral HTTP server running on port 9846, alias port 443.                # webserver.js:8471

@si458
Copy link
Collaborator

si458 commented Feb 27, 2025

OMG YOU HAVE SAVED MY BACON!
I've had this problem for months and months,
and whenever im debugging i always just comment out the 2 console.log lines,
then always remember to remove the comments before i git commit/push haha

@si458 si458 self-assigned this Feb 27, 2025
@si458 si458 merged commit 9df0330 into Ylianst:master Feb 27, 2025
3 checks passed
@redneck-f25 redneck-f25 deleted the feature/avoid-double-logging-in-debug-console branch February 27, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants