]> git.ipfire.org Git - pbs.git/commitdiff
log streams: Fix mapping log priorities
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Apr 2025 13:53:51 +0000 (13:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Apr 2025 13:53:51 +0000 (13:53 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/logstreams.py

index e451af8ea26478b2104daa5bd340e9036a7e460a..3af8ff3eaa150f931cc415372a661e6b9b052204 100644 (file)
@@ -22,6 +22,7 @@ import asyncio
 import collections
 import datetime
 import logging
+import syslog
 import uuid
 
 from . import base
@@ -109,10 +110,10 @@ class LogStreams(base.Object):
 
 class LogStream(base.Object):
        levels = {
-               logging.DEBUG   : "DEBUG",
-               logging.INFO    : "INFO",
-               logging.WARNING : "WARNING",
-               logging.ERROR   : "ERROR",
+               syslog.LOG_DEBUG   : "DEBUG",
+               syslog.LOG_INFO    : "INFO",
+               syslog.LOG_WARNING : "WARNING",
+               syslog.LOG_ERR     : "ERROR",
        }
 
        def init(self, uuid):