Skip to content

Commit

Permalink
perf: 日志单行输出超过限制(16KB)自动分行 TencentBlueKing#8856
Browse files Browse the repository at this point in the history
  • Loading branch information
royalhuang committed May 24, 2023
1 parent b77e615 commit b482216
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import java.util.concurrent.TimeUnit
import java.util.concurrent.atomic.AtomicBoolean
import java.util.concurrent.locks.ReentrantLock

@Suppress("MagicNumber", "TooManyFunctions", "ComplexMethod")
@Suppress("MagicNumber", "TooManyFunctions", "ComplexMethod", "LongMethod")
object LoggerService {

private val logResourceApi = ApiFactory.create(LogSDKApi::class)
Expand Down Expand Up @@ -181,8 +181,8 @@ object LoggerService {
Runtime.getRuntime().addShutdownHook(object : Thread() {
override fun run() = loggerService.stop()
})
} catch (t: Throwable) {
logger.warn("Fail to add shutdown hook", t)
} catch (ignore: Throwable) {
logger.warn("Fail to add shutdown hook", ignore)
}
}

Expand Down

0 comments on commit b482216

Please sign in to comment.