From a1dceedec3a35914286e760cebca9a3f59c17898 Mon Sep 17 00:00:00 2001 From: Mark Liffiton Date: Tue, 30 Jul 2024 12:57:12 -0500 Subject: [PATCH] Clean up test/debug logging. --- src/gened/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gened/base.py b/src/gened/base.py index 80f930a..4d7155b 100644 --- a/src/gened/base.py +++ b/src/gened/base.py @@ -84,12 +84,13 @@ def create_app_base(import_name: str, app_config: dict[str, Any], instance_path: 'root': { 'level': 'INFO', 'handlers': ['wsgi'] - } + }, }) else: # For testing/debugging, ensure DEBUG level logging. import logging logging.getLogger().setLevel(logging.DEBUG) + logging.getLogger('markdown_it').setLevel(logging.INFO) # avoid noisy debug logging in markdown_it #import logging_tree #logging_tree.printout() logging.debug("DEBUG logging enabled.") # This appears to be required for the config to "stick"?