stages/user_write: log discarded keys as warning

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-09-14 20:21:37 +02:00
parent 6b8b596c92
commit 84c08dca41

View file

@ -91,7 +91,7 @@ class UserWriteStageView(StageView):
# `attribute_`, to prevent accidentally saving values
else:
if not key.startswith("attributes.") and not key.startswith("attributes_"):
self.logger.debug("discarding key", key=key)
self.logger.warning("discarding key", key=key)
continue
UserWriteStageView.write_attribute(user, key, value)
# Check if we're writing from a source, and save the source to the attributes