Set hikari log level to ERROR
This commit is contained in:
parent
7406063378
commit
360d6e37a4
1 changed files with 6 additions and 0 deletions
|
@ -1,8 +1,11 @@
|
|||
package com.wbrawner.civicsquizbot
|
||||
|
||||
import app.cash.sqldelight.driver.jdbc.asJdbcDriver
|
||||
import ch.qos.logback.classic.Level
|
||||
import ch.qos.logback.classic.Logger
|
||||
import com.zaxxer.hikari.HikariConfig
|
||||
import com.zaxxer.hikari.HikariDataSource
|
||||
import org.slf4j.LoggerFactory
|
||||
import org.telegram.telegrambots.meta.TelegramBotsApi
|
||||
import org.telegram.telegrambots.meta.exceptions.TelegramApiException
|
||||
import org.telegram.telegrambots.updatesreceivers.DefaultBotSession
|
||||
|
@ -10,6 +13,9 @@ import org.telegram.telegrambots.updatesreceivers.DefaultBotSession
|
|||
object Main {
|
||||
@JvmStatic
|
||||
fun main(args: Array<String>) {
|
||||
val hikariLogger = LoggerFactory.getLogger("com.zaxxer.hikari") as Logger
|
||||
hikariLogger.level = Level.ERROR
|
||||
|
||||
val questions = try {
|
||||
javaClass.getResourceAsStream("/questions.txt")
|
||||
?.bufferedReader()
|
||||
|
|
Loading…
Reference in a new issue