關掉mongoDB的log
This commit is contained in:
parent
493ff96673
commit
0c34bd36a1
@ -1,15 +1,21 @@
|
||||
package com.ray650128.pcredive
|
||||
|
||||
import ch.qos.logback.classic.Level
|
||||
import ch.qos.logback.classic.LoggerContext
|
||||
import com.ray650128.pcredive.database.model.MemberRecord
|
||||
import com.ray650128.pcredive.database.model.Record
|
||||
import com.ray650128.pcredive.database.service.MemberRecordService
|
||||
import com.ray650128.pcredive.database.service.MemberService
|
||||
import io.ktor.server.application.*
|
||||
import com.ray650128.pcredive.plugins.*
|
||||
import org.slf4j.LoggerFactory
|
||||
import java.util.*
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
startTimer()
|
||||
val loggerContext = LoggerFactory.getILoggerFactory() as LoggerContext
|
||||
val rootLogger = loggerContext.getLogger("org.mongodb.driver")
|
||||
rootLogger.level = Level.OFF
|
||||
io.ktor.server.netty.EngineMain.main(args)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user