From c1759232b42c8926c080006223c382e20b9b2470 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 25 Mar 2025 06:15:33 +0000 Subject: Read sew stack debug information once and re-use (#3604) --- lib/debug/debug.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/debug') 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 -- cgit v1.2.3