Skip to content

Commit

Permalink
Update bootstrax strax logging
Browse files Browse the repository at this point in the history
The current way to enable strax logging to debug level did not work, as it was setting the level only for the daq logs. Now it correctly sets the level for the root logger. 
Thanks to @jmosbacher and @WenzDaniel
  • Loading branch information
cfuselli authored Sep 1, 2023
1 parent 34e12b6 commit bd94a97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/bootstrax
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,8 @@ def run_strax(run_id, input_dir, targets, readout_threads, compressor,
clear_shm()

if debug:
log.setLevel(logging.DEBUG)
logging.basicConfig(force=True)
logging.getLogger().setLevel(logging.DEBUG)
try:
log.info(f"Starting strax to make {run_id} with input dir {input_dir}")

Expand Down

0 comments on commit bd94a97

Please sign in to comment.