Skip to content

Commit

Permalink
Formatting fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
uniumuniu committed Oct 13, 2023
1 parent 0586918 commit df85434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/featurevisor/sdk/Logger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Logger(
fun createLogger(levels: List<LogLevel> = defaultLogLevels, handle: LogHandler = defaultLogHandler): Logger =
Logger(levels, handle)
}

fun setLevels(levels: List<LogLevel>) {
this.levels = levels
}
Expand All @@ -43,7 +44,6 @@ class Logger(
fun error(message: LogMessage, details: LogDetails? = null) =
log(ERROR, message, details)


private fun log(level: LogLevel, message: LogMessage, details: LogDetails? = null) {
if (level in levels) {
handle(level, message, details)
Expand Down

0 comments on commit df85434

Please sign in to comment.