Skip to content

Commit

Permalink
Fix to the logging setup in the listener
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccully committed Aug 10, 2023
1 parent abebe1c commit 5bbd901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion banzai/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def run_realtime_pipeline():
def start_listener(runtime_context):
# Need to keep the amqp logger level at least as high as INFO,
# or else it send heartbeat check messages every second
logging.getLogger('amqp').setLevel(max(logger.level, getattr(logging, 'INFO')))
logging.getLogger('amqp').setLevel(max(logging.getLogger().level, getattr(logging, 'INFO')))
logger.info('Starting pipeline listener')

fits_exchange = Exchange(runtime_context.FITS_EXCHANGE, type='fanout')
Expand Down

0 comments on commit 5bbd901

Please sign in to comment.