diff options
author | Allan Wang <me@allanwang.ca> | 2020-02-23 16:40:44 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-02-23 16:40:44 -0800 |
commit | e5cc1f1d5473ffa5fe5fc806e6c86ef354535ab1 (patch) | |
tree | 6706b1ba297ba791798575c2d27e077ac8804b67 /core/src | |
parent | 1840d89ca5ff4855d43b03a9a1c802f8c1ebd3c7 (diff) | |
download | kau-e5cc1f1d5473ffa5fe5fc806e6c86ef354535ab1.tar.gz kau-e5cc1f1d5473ffa5fe5fc806e6c86ef354535ab1.tar.bz2 kau-e5cc1f1d5473ffa5fe5fc806e6c86ef354535ab1.zip |
Change kaulogger default
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/logging/KauLogger.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |