aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-02-23 16:40:44 -0800
committerAllan Wang <me@allanwang.ca>2020-02-23 16:40:44 -0800
commite5cc1f1d5473ffa5fe5fc806e6c86ef354535ab1 (patch)
tree6706b1ba297ba791798575c2d27e077ac8804b67 /core/src/main/kotlin
parent1840d89ca5ff4855d43b03a9a1c802f8c1ebd3c7 (diff)
downloadkau-e5cc1f1d5473ffa5fe5fc806e6c86ef354535ab1.tar.gz
kau-e5cc1f1d5473ffa5fe5fc806e6c86ef354535ab1.tar.bz2
kau-e5cc1f1d5473ffa5fe5fc806e6c86ef354535ab1.zip
Change kaulogger default
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/logging/KauLogger.kt2
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)