]> git.ipfire.org Git - pakfire.git/commitdiff
python: Drop log messages of an unknown priority
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Jun 2021 15:17:56 +0000 (15:17 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Jun 2021 15:17:56 +0000 (15:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/pakfire.c

index 5152208042450c353f19e5fd82149efdad69696c..eb814458c95e54609552767754bd94f8f4a7425b 100644 (file)
@@ -67,6 +67,10 @@ static void Pakfire_logging_callback(void* data, int priority, const char* file,
                case LOG_ERR:
                        priority = 40;
                        break;
+
+               // Drop messages of an unknown priority
+               default:
+                       return;
        }
 
        PyObject* tuple = NULL;