]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common/smb: add constants for managing smb debug levels
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 26 Feb 2026 18:50:29 +0000 (13:50 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 27 Feb 2026 15:40:09 +0000 (10:40 -0500)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/python-common/ceph/smb/constants.py

index bc2961de49a3a523893aaccd8873294e952010be..a90f42fc8e894d8cce48f693bb17541448b08021 100644 (file)
@@ -47,3 +47,14 @@ DEFAULT_PORTS = {
     CTDB: CTDB_PORT,
     REMOTE_CONTROL: REMOTE_CONTROL_PORT,
 }
+
+
+# Debugging levels (names/translation)
+DEBUG_LEVEL_TIERS = [
+    ("ERROR", 0, 0),
+    ("WARNING", 1, 2),
+    ("NOTICE", 3, 4),
+    ("INFO", 5, 8),
+    ("DEBUG", 9, 10),
+]
+DEBUG_LEVEL_TERMS = {t[0] for t in DEBUG_LEVEL_TIERS}