Skip to content

Commit

Permalink
Use loggers own method for formatting log message
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed Feb 22, 2023
1 parent 0ef7fb5 commit d35b3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/nav/web/sortedstats/views.py
Expand Up @@ -98,7 +98,7 @@ def process_form(form):
if result and not result.data:
result = None
except InvalidCacheBackendError as e:
_logger.error("Error accessing cache for ranked statistics: %s".format(e))
_logger.error("Error accessing cache for ranked statistics: %s", e)
result = None
if not result:
result = collect_result(view, timeframe, rows)
Expand Down Expand Up @@ -129,7 +129,7 @@ def collect_result(view, timeframe, rows):
cache = get_cache()
cache.set(cache_key, result, timeout=timeout)
except InvalidCacheBackendError as e:
_logger.error("Error accessing cache for ranked statistics: %s".format(e))
_logger.error("Error accessing cache for ranked statistics: %s", e)
return result


Expand Down

0 comments on commit d35b3f0

Please sign in to comment.