make location logging also debug instead of info
This commit is contained in:
parent
4392b442da
commit
e410515e05
|
@ -27,19 +27,19 @@ object LocationHandler {
|
||||||
val defaults = cfg.outgoingDefaults
|
val defaults = cfg.outgoingDefaults
|
||||||
var handled = false
|
var handled = false
|
||||||
val skips = mutableSetOf<String>()
|
val skips = mutableSetOf<String>()
|
||||||
logger.info("locations: ${cfg.locations.map { it.label }}")
|
logger.debug("locations: ${cfg.locations.map { it.label }}")
|
||||||
for (location in cfg.locations) {
|
for (location in cfg.locations) {
|
||||||
val label = location.label
|
val label = location.label
|
||||||
if (skips.contains(label)) {
|
if (skips.contains(label)) {
|
||||||
logger.info("skipping $label (contained in in $skips)")
|
logger.debug("skipping $label (contained in in $skips)")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if (!location.area.testForDim(dimension)) {
|
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
|
continue
|
||||||
}
|
}
|
||||||
if (!location.area.testInBounds(x, y, z)) {
|
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
|
continue
|
||||||
}
|
}
|
||||||
val matchesEvent = when (event) {
|
val matchesEvent = when (event) {
|
||||||
|
@ -54,10 +54,10 @@ object LocationHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!matchesEvent) {
|
if (!matchesEvent) {
|
||||||
logger.info("location: $label dropped message '$msg' from user: '$user', event not enabled")
|
logger.debug("location: $label dropped message '$msg' from user: '$user', event not enabled")
|
||||||
logger.info("event: $event")
|
logger.debug("event: $event")
|
||||||
logger.info("location.outgoing: ${location.outgoing}")
|
logger.debug("location.outgoing: ${location.outgoing}")
|
||||||
logger.info("defaults: $defaults")
|
logger.debug("defaults: $defaults")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ object LocationHandler {
|
||||||
)
|
)
|
||||||
else -> logger.warn("WARN: dropped blank message by '$user'")
|
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
|
handled = true
|
||||||
}
|
}
|
||||||
return handled
|
return handled
|
||||||
|
|
Loading…
Reference in New Issue