From 3c1927afd757009e0288bada7bf7e462e1131da8 Mon Sep 17 00:00:00 2001 From: Marshall Hallenbeck Date: Thu, 21 Mar 2024 18:16:09 -0400 Subject: [PATCH] fix: modules with a name between 8 and 10 length were being erroneously cut off --- nxc/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxc/logger.py b/nxc/logger.py index e3f95fe7..688142ab 100755 --- a/nxc/logger.py +++ b/nxc/logger.py @@ -40,7 +40,7 @@ class NXCAdapter(logging.LoggerAdapter): if self.extra is None: return f"{msg}", kwargs - if "module_name" in self.extra and len(self.extra["module_name"]) > 8: + if "module_name" in self.extra and len(self.extra["module_name"]) > 11: self.extra["module_name"] = self.extra["module_name"][:8] + "..." # If the logger is being called when hooking the 'options' module function