Skip to content

Commit 70fad33

Browse files
committed
Limit debug logging for a disconnected JMX app
1 parent a495358 commit 70fad33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

visualvm/jmx/src/org/graalvm/visualvm/jmx/impl/JmxModelImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,14 +524,14 @@ void connect() {
524524
if (e.toString().contains("com.sun.enterprise.security.LoginException")) { // NOI18N
525525
throw new SecurityException("Authentication failed! Invalid username or password"); // NOI18N
526526
}
527-
if (LOGGER.isLoggable(Level.INFO)) {
527+
if (LOGGER.isLoggable(Level.FINE)) {
528528
// Try to provide info on the target
529529
// Use PID when attach was used to connect,
530530
// Use JMXServiceURL otherwise...
531531
final String param =
532532
(lvm != null) ? String.valueOf(lvm.vmid())
533533
: ((jmxUrl != null) ? jmxUrl.toString() : ""); // NOI18N
534-
LOGGER.log(Level.INFO, "connect(" + param + ")", e); // NOI18N
534+
LOGGER.log(Level.FINE, "connect(" + param + ")", e); // NOI18N
535535
}
536536
}
537537
}

0 commit comments

Comments
 (0)