Skip to content

Commit e6ea1b9

Browse files
fix: ログ出力のレベルをWARN以上に限定
1 parent f464f29 commit e6ea1b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/kotlin/core/packetproxy/util/Logging.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,17 @@ object Logging {
9090

9191
val rootLogger = context.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME)
9292
rootLogger.addAppender(appender)
93-
rootLogger.level = Level.INFO
93+
// ormliteなどのdebugログを抑制するため、WARN未満は出力しない
94+
rootLogger.level = Level.WARN
9495
}
9596

9697
@JvmStatic
9798
@Throws(IllegalFormatException::class)
9899
fun log(format: Any, vararg args: Any?) {
99100
val fs = formatString(format, *args)
100101

101-
logger.info(fs)
102+
// WARN未満は出力されないためwarnで出力する
103+
logger.warn(fs)
102104
if (isGulp) return
103105
guiLog.append(fs)
104106
}

0 commit comments

Comments
 (0)