From e410515e053b108dd08930f549822074df197c68 Mon Sep 17 00:00:00 2001 From: NikkyAI Date: Wed, 28 Nov 2018 18:23:59 +0100 Subject: [PATCH] make location logging also debug instead of info --- .../matterlink/handlers/LocationHandler.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/core/src/main/kotlin/matterlink/handlers/LocationHandler.kt b/core/src/main/kotlin/matterlink/handlers/LocationHandler.kt index e8b2488..a4b3fbe 100644 --- a/core/src/main/kotlin/matterlink/handlers/LocationHandler.kt +++ b/core/src/main/kotlin/matterlink/handlers/LocationHandler.kt @@ -27,19 +27,19 @@ object LocationHandler { val defaults = cfg.outgoingDefaults var handled = false val skips = mutableSetOf() - logger.info("locations: ${cfg.locations.map { it.label }}") + logger.debug("locations: ${cfg.locations.map { it.label }}") for (location in cfg.locations) { val label = location.label if (skips.contains(label)) { - logger.info("skipping $label (contained in in $skips)") + logger.debug("skipping $label (contained in in $skips)") continue } if (!location.area.testForDim(dimension)) { - logger.info("location: $label dropped message '$msg' from $user due to mismatched dimension") + logger.debug("location: $label dropped message '$msg' from $user due to mismatched dimension") continue } if (!location.area.testInBounds(x, y, z)) { - logger.info("location: $label dropped message '$msg' from $user out of coordinate bounds") + logger.debug("location: $label dropped message '$msg' from $user out of coordinate bounds") continue } val matchesEvent = when (event) { @@ -54,10 +54,10 @@ object LocationHandler { } if (!matchesEvent) { - logger.info("location: $label dropped message '$msg' from user: '$user', event not enabled") - logger.info("event: $event") - logger.info("location.outgoing: ${location.outgoing}") - logger.info("defaults: $defaults") + logger.debug("location: $label dropped message '$msg' from user: '$user', event not enabled") + logger.debug("event: $event") + logger.debug("location.outgoing: ${location.outgoing}") + logger.debug("defaults: $defaults") continue } @@ -102,7 +102,7 @@ object LocationHandler { ) else -> logger.warn("WARN: dropped blank message by '$user'") } - logger.info("sent message through location: $label, cause: $cause") + logger.debug("sent message through location: $label, cause: $cause") handled = true } return handled