[elbe-devel] [PATCH] elbepack: repo: use proper logging method

Thomas Weißschuh thomas.weissschuh at linutronix.de
Thu Jul 25 09:53:49 CEST 2024


logger.warn() is deprecated.
The level is wrong anyways, use the more appropriate .info() instead.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/daemons/repo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/daemons/repo.py b/elbepack/daemons/repo.py
index 8c6baec739f2..59c7eb910fe6 100644
--- a/elbepack/daemons/repo.py
+++ b/elbepack/daemons/repo.py
@@ -19,7 +19,7 @@ def _app(environ, respond):
     mime_type = mimetypes.guess_type(fn)[0] or 'application/octet-stream'
 
     # Return 200 OK if file exists, otherwise 404 Not Found
-    logger.warn('Serving as %s: "%s"', mime_type, fn)
+    logger.info('Serving as %s: "%s"', mime_type, fn)
     if os.path.exists(fn):
         respond('200 OK', [
             ('Content-Type', mime_type),

---
base-commit: 6085e245520afc3b98edcdc03349b44e47d455b3
change-id: 20240725-reposerver-logger-warn-cb1eff697c26

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh at linutronix.de>



More information about the elbe-devel mailing list