feat: ログを改善

This commit is contained in:
usbharu 2024-08-24 12:22:31 +09:00
parent 9b60099ad9
commit e4947ce5a9
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
2 changed files with 5 additions and 4 deletions

View File

@ -30,7 +30,8 @@ abstract class AbstractApplicationService<T : Any, R>(
val response = transaction.transaction<R> {
internalExecute(command, principal)
}
logger.info("SUCCESS ${command::class.simpleName}")
logger.info("SUCCESS $command $response")
response
} catch (e: CancellationException) {
logger.debug("Coroutine canceled", e)

View File

@ -6,13 +6,13 @@
</Console>
</Appenders>
<Loggers>
<Root level="DEBUG">
<Root level="INFO">
<AppenderRef ref="Console"/>
</Root>
<Logger name="dev.usbharu.owl.broker.service.QueuedTaskAssignerImpl" level="TRACE"/>
<!-- <Logger name="org.mongodb.driver.cluster" level=""/>-->
<Logger name="org.mongodb.driver.cluster" level="INFO"/>
<Logger name="org.apache.tomcat.util.net.NioEndpoint" level="INFO"/>
<Logger name="Exposed" level="DEBUG"/>
<!-- <Logger name="Exposed" level="DEBUG"/>-->
<Logger name="sun.rmi" level="INFO"/>
<Logger name="javax.management.remote.rmi" level="INFO"/>
</Loggers>