diff --git a/python/nav/util.py b/python/nav/util.py index b75162c47b..e6ef429014 100644 --- a/python/nav/util.py +++ b/python/nav/util.py @@ -549,6 +549,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