From 1ad01f2e5e4c270a245ea619d1bf62602dfcb4f9 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Thu, 26 Feb 2026 13:50:29 -0500 Subject: [PATCH] python-common/smb: add constants for managing smb debug levels Signed-off-by: John Mulligan --- src/python-common/ceph/smb/constants.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/python-common/ceph/smb/constants.py b/src/python-common/ceph/smb/constants.py index bc2961de49a3..a90f42fc8e89 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} -- 2.47.3