Skip to content

Commit

Permalink
Delete unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
orangain committed Mar 9, 2024
1 parent d932034 commit 1a1bf27
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ class MyConsoleInputFilter : InputFilter {
val message = extractMessage(node)

val jsonString = prettyPrintJson(node)
// return mutableListOf(
// Pair("[$timestamp] ", contentType),
// Pair(level, contentTypeOf(level, contentType)),
// Pair(": ", contentType),
// Pair(message, ConsoleViewContentType.LOG_VERBOSE_OUTPUT),
// )
return mutableListOf(
Pair("[${timestamp?.format(zoneId, timestampFormatter)}] ", contentType),
Pair("$level: $message", contentTypeOf(level, contentType)),
Expand Down Expand Up @@ -87,10 +81,6 @@ fun parseJson(text: String): JsonNode? {
}
}

private fun detectKey(keys: Set<String>, candidates: List<String>): String? {
return candidates.firstOrNull { keys.contains(it) }
}

private fun contentTypeOf(level: Level?, inputContentType: ConsoleViewContentType): ConsoleViewContentType {
return when (level) {
Level.TRACE, Level.DEBUG -> ConsoleViewContentType.LOG_DEBUG_OUTPUT
Expand Down

0 comments on commit 1a1bf27

Please sign in to comment.