From: John Mulligan Date: Thu, 26 Feb 2026 18:50:29 +0000 (-0500) Subject: python-common/smb: add constants for managing smb debug levels X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ad01f2e5e4c270a245ea619d1bf62602dfcb4f9;p=ceph.git python-common/smb: add constants for managing smb debug levels Signed-off-by: John Mulligan --- diff --git a/src/python-common/ceph/smb/constants.py b/src/python-common/ceph/smb/constants.py index bc2961de49a..a90f42fc8e8 100644 --- a/src/python-common/ceph/smb/constants.py +++ b/src/python-common/ceph/smb/constants.py @@ -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}