Marcin Wisniowski
05/22/2018, 3:56 PMlogger.removeLogger(Slf4jSqlLogger)
seems to work, but only for one transaction when put into that transaction.Allan Wang
05/22/2018, 4:02 PMMarcin Wisniowski
05/22/2018, 4:05 PMAllan Wang
05/22/2018, 4:10 PMfun <T> transaction(statement: Transaction.() -> T): T = org.jetbrains.exposed.sql.transactions.transaction {
logger.removeLogger(Slf4jSqlLogger)
statement()
}
Though you need to make sure you call your own transaction. You can change the name if you'd like it to be explicit.
You may also look into slf4j configs and exclude the exposed packages. I use log4j2 and I don't see any sql statement outputs by defaultMarcin Wisniowski
05/22/2018, 4:12 PMAllan Wang
05/22/2018, 4:14 PMMarcin Wisniowski
05/22/2018, 4:22 PM