Skip to content

Commit 14201de

Browse files
authored
Merge pull request #1339 from cta-observatory/check_dl1_logging
Clean lstchain_check_dl1.py logging
2 parents 83362a0 + 6c8446f commit 14201de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lstchain/scripts/lstchain_check_dl1.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,19 @@ def main():
8585
geomlogger = logging.getLogger('ctapipe.instrument.camera')
8686
geomlogger.setLevel(logging.ERROR)
8787

88+
# Avoid provenance info messages ("No activity has been explicitly
89+
# started..."), which come from call to load_camera_geometry():
90+
provlogger = logging.getLogger('ctapipe.core.provenance')
91+
provlogger.setLevel(logging.WARNING)
92+
8893
if len(unknown) > 0:
8994
ukn = ''
9095
for s in unknown:
9196
ukn += s + ' '
9297
logger.error('Unknown options: ' + ukn)
9398
exit(-1)
9499

100+
logger.info('Executing {}'.format(__name__))
95101
logger.info('input files: {}'.format(args.input_file))
96102
logger.info('output directory: {}'.format(args.output_dir))
97103

0 commit comments

Comments
 (0)