Proxy `marketstore` container log level to our own

mkts_backup
Tyler Goodlet 2022-03-01 12:34:16 -05:00
parent 8af76322c9
commit 847c95d277
1 changed files with 2 additions and 1 deletions

View File

@ -242,11 +242,12 @@ async def open_marketstore(
raise RuntimeError(entry) raise RuntimeError(entry)
msg = record['msg'] msg = record['msg']
level = record['level']
if msg and entry not in seen_so_far: if msg and entry not in seen_so_far:
seen_so_far.add(entry) seen_so_far.add(entry)
if bp_on_msg: if bp_on_msg:
await tractor.breakpoint() await tractor.breakpoint()
log.info(f'{msg}') getattr(log, level)(f'{msg}')
# if "launching tcp listener for all services..." in msg: # if "launching tcp listener for all services..." in msg:
if match in msg: if match in msg: