stages/user_write: log discarded keys as warning
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
6b8b596c92
commit
84c08dca41
|
@ -91,7 +91,7 @@ class UserWriteStageView(StageView):
|
||||||
# `attribute_`, to prevent accidentally saving values
|
# `attribute_`, to prevent accidentally saving values
|
||||||
else:
|
else:
|
||||||
if not key.startswith("attributes.") and not key.startswith("attributes_"):
|
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
|
continue
|
||||||
UserWriteStageView.write_attribute(user, key, value)
|
UserWriteStageView.write_attribute(user, key, value)
|
||||||
# Check if we're writing from a source, and save the source to the attributes
|
# Check if we're writing from a source, and save the source to the attributes
|
||||||
|
|
Reference in New Issue