Skip to content

Commit

Permalink
Merge pull request #1339 from cta-observatory/check_dl1_logging
Browse files Browse the repository at this point in the history
Clean lstchain_check_dl1.py logging
  • Loading branch information
moralejo authored Jan 24, 2025
2 parents 83362a0 + 6c8446f commit 14201de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lstchain/scripts/lstchain_check_dl1.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,19 @@ def main():
geomlogger = logging.getLogger('ctapipe.instrument.camera')
geomlogger.setLevel(logging.ERROR)

# Avoid provenance info messages ("No activity has been explicitly
# started..."), which come from call to load_camera_geometry():
provlogger = logging.getLogger('ctapipe.core.provenance')
provlogger.setLevel(logging.WARNING)

if len(unknown) > 0:
ukn = ''
for s in unknown:
ukn += s + ' '
logger.error('Unknown options: ' + ukn)
exit(-1)

logger.info('Executing {}'.format(__name__))
logger.info('input files: {}'.format(args.input_file))
logger.info('output directory: {}'.format(args.output_dir))

Expand Down

0 comments on commit 14201de

Please sign in to comment.