Skip to content

Commit

Permalink
add timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
cereal2nd committed Jun 29, 2024
1 parent 21bd92b commit aa877ae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/read_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ async def main(connect_str: str):
await asyncio.sleep(6000000000)


logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logging.basicConfig(
stream=sys.stdout,
level=logging.DEBUG,
style="{",
datefmt="%H:%M:%S",
format="{asctime} {levelname:<9} {message}",
)
logging.getLogger("asyncio").setLevel(logging.DEBUG)
asyncio.run(main(args.connect), debug=True)

0 comments on commit aa877ae

Please sign in to comment.