aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/ca
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/ca')
-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)