fix: modules with a name between 8 and 10 length were being erroneously cut off

This commit is contained in:
Marshall Hallenbeck
2024-03-21 18:16:09 -04:00
parent ae158614e6
commit 3c1927afd7
+1 -1
View File
@@ -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