forked from SteamWar/SteamWar
Remove redundant SQL logger in useDb and extra newlines in SQLConfig.
Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
@@ -70,7 +70,6 @@ object KotlinDatabase {
|
||||
fun <T: Any?> useDb(statement: JdbcTransaction.() -> T): T {
|
||||
KotlinDatabase.ensureConnected()
|
||||
return TransactionManager.currentOrNull()?.statement() ?: transaction(KotlinDatabase.db) {
|
||||
addLogger(StdOutSqlLogger)
|
||||
statement()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,4 @@ public interface SQLConfig {
|
||||
Logger getLogger();
|
||||
|
||||
int maxConnections();
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user