From e5cc1f1d5473ffa5fe5fc806e6c86ef354535ab1 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 23 Feb 2020 16:40:44 -0800 Subject: Change kaulogger default --- core/src/main/kotlin/ca/allanwang/kau/logging/KauLogger.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/main') diff --git a/core/src/main/kotlin/ca/allanwang/kau/logging/KauLogger.kt b/core/src/main/kotlin/ca/allanwang/kau/logging/KauLogger.kt index 9410c4c..a9a97b7 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/logging/KauLogger.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/logging/KauLogger.kt @@ -47,7 +47,7 @@ open class KauLogger( /** * Toggle to dictate whether a message should be logged */ - var shouldLog: (priority: Int) -> Boolean = { true } + var shouldLog: (priority: Int) -> Boolean = { it >= Log.INFO } ) { inline fun v(message: () -> Any?) = log(Log.VERBOSE, message) -- cgit v1.2.3