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> { val response = transaction.transaction<R> {
internalExecute(command, principal) internalExecute(command, principal)
} }
logger.info("SUCCESS ${command::class.simpleName}")
logger.info("SUCCESS $command $response")
response response
} catch (e: CancellationException) { } catch (e: CancellationException) {
logger.debug("Coroutine canceled", e) logger.debug("Coroutine canceled", e)

View File

@ -6,13 +6,13 @@
</Console> </Console>
</Appenders> </Appenders>
<Loggers> <Loggers>
<Root level="DEBUG"> <Root level="INFO">
<AppenderRef ref="Console"/> <AppenderRef ref="Console"/>
</Root> </Root>
<Logger name="dev.usbharu.owl.broker.service.QueuedTaskAssignerImpl" level="TRACE"/> <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="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="sun.rmi" level="INFO"/>
<Logger name="javax.management.remote.rmi" level="INFO"/> <Logger name="javax.management.remote.rmi" level="INFO"/>
</Loggers> </Loggers>