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