Skip to content

Commit

Permalink
Switched log message from f-string to deferred formatting for perform…
Browse files Browse the repository at this point in the history
…ance
  • Loading branch information
dwightgunning committed Jan 4, 2021
1 parent e9f3e61 commit f2360fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x_robots_tag_middleware/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ def __call__(self, request):

if settings.X_ROBOTS_TAG:
response["X-Robots-Tag"] = ",".join(settings.X_ROBOTS_TAG)
logger.debug(f"x_robots_tag: {settings.X_ROBOTS_TAG}")
logger.debug("x_robots_tag: %s", settings.X_ROBOTS_TAG)

return response

0 comments on commit f2360fd

Please sign in to comment.