From 813cc31344135aaf93f6508bc50802426998f719 Mon Sep 17 00:00:00 2001
From: Gabriel Augendre <gabriel@augendre.info>
Date: Wed, 19 Mar 2025 00:03:26 +0100
Subject: [PATCH] fix ruff

---
 src/charasheet/settings.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/charasheet/settings.py b/src/charasheet/settings.py
index 9a3db4a..451e842 100644
--- a/src/charasheet/settings.py
+++ b/src/charasheet/settings.py
@@ -50,7 +50,8 @@ if DEBUG:
         INTERNAL_IPS.append(ip)
         ALLOWED_HOSTS.append(ip)
     except Exception as e:
-        logging.info("couldn't setup allowed host in debug: %s", e)
+        logger = logging.getLogger(__name__)
+        logger.info("couldn't setup allowed host in debug: %s", e)
 
 
 CSRF_TRUSTED_ORIGINS = env("CSRF_TRUSTED_ORIGINS")