From f2360fd43c6b900066df0ca1c26a7002501d77ae Mon Sep 17 00:00:00 2001 From: Dwight Gunning Date: Mon, 4 Jan 2021 21:21:18 +0200 Subject: [PATCH] Switched log message from f-string to deferred formatting for performance --- x_robots_tag_middleware/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x_robots_tag_middleware/middleware.py b/x_robots_tag_middleware/middleware.py index 31c0bbc..5c796fe 100644 --- a/x_robots_tag_middleware/middleware.py +++ b/x_robots_tag_middleware/middleware.py @@ -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