From 17d46aafc2fc0e653b1242733e7ab60979948a24 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Wed, 28 Aug 2019 22:04:17 -0400 Subject: [PATCH] problem: run with INFO logging by default --- src/main/kotlin/io/emeraldpay/dshackle/GrpcServer.kt | 1 + src/main/resources/log4j2.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/GrpcServer.kt b/src/main/kotlin/io/emeraldpay/dshackle/GrpcServer.kt index 89f7e106..f7f53cf3 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/GrpcServer.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/GrpcServer.kt @@ -43,6 +43,7 @@ open class GrpcServer( @PostConstruct fun start() { log.info("Starting GRPC Server...") + log.debug("Running with DEBUG LOGGING") val port = env.getProperty("port", "8090").toInt() log.info("Listening on 0.0.0.0:$port") val serverBuilder = NettyServerBuilder.forPort(port) diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index 5d8e1b39..307e2ee4 100644 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -18,7 +18,7 @@ - +