diff --git a/python/nav/util.py b/python/nav/util.py index 4baf8cf493..306b220693 100644 --- a/python/nav/util.py +++ b/python/nav/util.py @@ -523,6 +523,4 @@ def check_log_level(logger, loglevel): logger.info("%s", expensive_function()) """ level = logger.getEffectiveLevel() - if level <= loglevel: - return True - return False + return level <= loglevel