-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress netty.shaded debug stack traces in cli
Configure cli loggers to avoid scary but ignorable netty debug log messages with stack traces: "Reflective setAccessible(true)", and those showing unsuccessful netty native lib load attempts. It may be preferable to not use logback in cli, and achieve the same result programmatically with slf4j, but this shows how to hide this ugly log output in the meantime. Remove comment about why these messages were logged, and switch to non-deprecated ManagedChannelBuilder.forAddress(host, port) .usePlaintext().build() in BisqCliMain.
- Loading branch information
Showing
2 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<appender name="CONSOLE_APPENDER" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%highlight(%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{30}: %msg %xEx%n)</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="TRACE"> | ||
<appender-ref ref="CONSOLE_APPENDER"/> | ||
</root> | ||
|
||
<logger name="io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0" level="WARN"/> | ||
<logger name="io.grpc.netty.shaded.io.netty.util.internal.NativeLibraryLoader" level="WARN"/> | ||
<logger name="io.grpc.netty" level="TRACE"/> | ||
|
||
</configuration> |