Skip to content

Commit 4a003f5

Browse files
author
Jaap van der Plas
committed
[Kaizen] configure akka.loglevel to allow for debug messages to reach Logback. disable java.util.logging (used by legacy code in JUPnP)
1 parent c38c2c2 commit 4a003f5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/main/resources/conf/base.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,8 @@ mantis {
626626

627627
akka {
628628
loggers = ["akka.event.slf4j.Slf4jLogger"]
629-
# Not using ${logging.logs-level} because it might be set to TRACE, which our version of Akka doesn't have.
630-
loglevel = "INFO"
629+
# the effective log level is configured for Logback; this loglevel only determines what is passed to Slf4j
630+
loglevel = "DEBUG"
631631
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
632632
logger-startup-timeout = 30s
633633
log-dead-letters-during-shutdown = off

src/main/resources/logback.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<configuration>
22

3-
<property name="stdoutEncoderPattern" value="%d [%logger{36}] - %msg%n" />
3+
<property name="stdoutEncoderPattern" value="%d %-5level [%logger{36}] - %msg%n" />
44
<property name="fileEncoderPattern" value="%d [%thread] %-5level %logger{36} %X{akkaSource} - %msg%n" />
55

66
<!--read properties from application.conf-->

src/main/scala/io/iohk/ethereum/Mantis.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ package io.iohk.ethereum
22

33
import io.iohk.ethereum.nodebuilder.{StdNode, TestNode}
44
import io.iohk.ethereum.utils.{Config, Logger}
5+
import java.util.logging.LogManager
56

67
object Mantis extends Logger {
78
def main(args: Array[String]): Unit = {
9+
LogManager.getLogManager().reset();
10+
811
val node =
912
if (Config.testmode) {
1013
log.info("Starting Mantis in test mode")

0 commit comments

Comments
 (0)