Skip to content

Commit

Permalink
Add timestamp to logs in rtl_433_mqtt_hass (#2566)
Browse files Browse the repository at this point in the history
Prefix log entries with a timestamp to make it easier to determine when an event happened.
  • Loading branch information
noahwilliamsson committed Jul 14, 2023
1 parent 37b804c commit 2cb87ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/rtl_433_mqtt_hass.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ def run():


if __name__ == "__main__":
logging.basicConfig(format='[%(asctime)s] %(levelname)s:%(name)s:%(message)s',datefmt='%Y-%m-%dT%H:%M:%S%z')
logging.getLogger().setLevel(logging.INFO)

parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
Expand Down

0 comments on commit 2cb87ce

Please sign in to comment.