summaryrefslogtreecommitdiff
path: root/lib/debug/debug.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug/debug.py')
-rw-r--r--lib/debug/debug.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/debug/debug.py b/lib/debug/debug.py
index d96dd36d..83e001eb 100644
--- a/lib/debug/debug.py
+++ b/lib/debug/debug.py
@@ -17,12 +17,17 @@ from lxml import etree # to create svg file
from ..svg import line_strings_to_path
from ..svg.tags import INKSCAPE_GROUPMODE, INKSCAPE_LABEL
+from .utils import safe_get
+from ..utils.paths import get_ini
+
import logging
logger = logging.getLogger("inkstitch.debug") # create module logger with name 'inkstitch.debug'
# to log messages if previous debug logger is not enabled
logger_inkstich = logging.getLogger("inkstitch") # create module logger with name 'inkstitch'
+sew_stack_enabled = safe_get(get_ini(), "DEBUG", "enable_sew_stack", default=False)
+
# --------------------------------------------------------------------------------------------
# decorator to check if debugging is enabled