From 4a466de50d8e553bfa5ecee16374c27f5c222fd8 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Fri, 28 Feb 2025 09:26:53 +0100 Subject: [PATCH] Use logging module for python logging --- python/k4FWCore/ApplicationMgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/k4FWCore/ApplicationMgr.py b/python/k4FWCore/ApplicationMgr.py index 59f965d5..e7bcd1f9 100644 --- a/python/k4FWCore/ApplicationMgr.py +++ b/python/k4FWCore/ApplicationMgr.py @@ -96,7 +96,7 @@ def _setup_reader(self, reader, iosvc_props): logger.debug("Using the first frame to determine collections to read") collections = list(frame.getAvailableCollections()) except IndexError: - print("Warning, the events category wasn't found in the input file") + logger.warning("Warning, the events category wasn't found in the input file") raise logger.info(f"Passing {collections} as collections to read to the Reader") reader.InputCollections = collections