Skip to content

Commit

Permalink
adjust logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Lien committed Jan 25, 2022
1 parent 6243d9e commit 2c2ce0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package no.nav.mulighetsrommet.api
import com.typesafe.config.ConfigFactory
import io.ktor.application.Application
import io.ktor.application.ApplicationStopped
import io.ktor.application.log
import io.ktor.config.HoconApplicationConfig
import io.ktor.routing.routing
import no.nav.mulighetsrommet.api.kafka.KafkaFactory
Expand Down Expand Up @@ -47,6 +48,7 @@ fun Application.module() {

// TODO: Lag noe som er litt mer robust. Kun for å få deployet.
if (enableKafka) {
log.debug("Kafka is enabled")
val kafka: KafkaFactory by inject()
environment.monitor.subscribe(ApplicationStopped) {
println("Shutting down")
Expand Down
2 changes: 1 addition & 1 deletion backend/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<root level="trace">
<appender-ref ref="STDOUT"/>
</root>
<logger name="org.apache.kafka" level="ERROR" />
<!-- <logger name="org.apache.kafka" level="ERROR" />-->
<logger name="org.eclipse.jetty" level="INFO"/>
<logger name="io.netty" level="INFO"/>
</configuration>

0 comments on commit 2c2ce0d

Please sign in to comment.