Skip to content

Commit e7d0c50

Browse files
larzenizbynek
andauthored
Fix console log uses debug (#10139)
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. --------- Co-authored-by: Zbynek Konecny <[email protected]>
1 parent c14f5cb commit e7d0c50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

user/src/com/google/gwt/logging/client/ConsoleLogHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void publish(LogRecord record) {
5757
} else if (val >= Level.INFO.intValue()) {
5858
info(msg);
5959
} else {
60-
log(msg);
60+
debug(msg);
6161
}
6262
}
6363

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

80-
private native void log(String message) /*-{
81-
window.console.log(message);
80+
private native void debug(String message) /*-{
81+
window.console.debug(message);
8282
}-*/;
8383
}

0 commit comments

Comments
 (0)