Skip to content

Fix console log uses debug #10139

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

larzeni
Copy link

@larzeni larzeni commented Jul 3, 2025

This patch updates ConsoleLogHandler to use console.debug() instead of console.log() for log levels FINE, FINER, and FINEST, ensuring that these messages are only shown in the "Verbose" tab in browser developer tools. This aligns with standard browser behavior for log levels.

larzeni added 2 commits July 3, 2025 11:29
…og (inspector info level) in ConsoleLogHandler
…og (inspector info level) in ConsoleLogHandler
@larzeni
Copy link
Author

larzeni commented Jul 3, 2025

I beg your pardon, this is my first attempt to publish a patch

@@ -77,7 +77,9 @@ private native void info(String message) /*-{
window.console.info(message);
}-*/;

private native void log(String message) /*-{
window.console.log(message);
private native void logVerbose(String message) /*-{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename the method to debug to match the naming scheme of all the other logging methods. Also the comment can be removed as it is already pretty clear what is going on.

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