summaryrefslogtreecommitdiffstats
path: root/python/knot_resolver/datamodel/logging_schema.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/knot_resolver/datamodel/logging_schema.py')
-rw-r--r--python/knot_resolver/datamodel/logging_schema.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/knot_resolver/datamodel/logging_schema.py b/python/knot_resolver/datamodel/logging_schema.py
index b98039be..6c398a85 100644
--- a/python/knot_resolver/datamodel/logging_schema.py
+++ b/python/knot_resolver/datamodel/logging_schema.py
@@ -129,8 +129,7 @@ class LoggingSchema(ConfigSchema):
if not is_obj_type_valid(target, cast(Type[Any], LogTargetEnum)):
raise ValueError(f"logging target '{target}' read from $KRES_LOGGING_TARGET is invalid")
return cast(LogTargetEnum, target)
- else:
- return raw.target
+ return raw.target
def _validate(self):
if self.groups is None: