From 73bdf11846625418c0f63a12d6f0e47d65a4711b Mon Sep 17 00:00:00 2001 From: "Johannes L. Hoermann" Date: Thu, 15 Jan 2026 16:07:06 +0900 Subject: [PATCH] MAINT: activate root logger if not configured yet, necessary for CLI application to actually print logging information to stdout --- intermol/convert.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/intermol/convert.py b/intermol/convert.py index 56e51a68..bf94743f 100644 --- a/intermol/convert.py +++ b/intermol/convert.py @@ -19,6 +19,10 @@ # Make a global logging object. + +if not logging.getLogger().handlers: + logging.basicConfig(level=logging.DEBUG, format="%(levelname)s:%(name)s:%(message)s") + logger = logging.getLogger('InterMolLog') logger.setLevel(logging.DEBUG) logging.captureWarnings(True)