Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: rtl_433_mqtt_hass: add timestamp to logs #2566

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

noahwilliamsson
Copy link
Contributor

Prefix log entries with a timestamp to make it easier to determine when an event happened.

Before:

INFO:root:Skipped Telldus-FT0385R: humidity_2
INFO:root:Published Telldus-FT0385R: time, temperature_C, humidity, ...

After:

[2023-07-14T22:53:31+0200] INFO:root:Skipped Telldus-FT0385R: humidity_2
[2023-07-14T22:53:31+0200] INFO:root:Published Telldus-FT0385R: time, temperature_C, humidity, ...

Prefix log entries with a timestamp to make it easier to determine when an event happened.

Before:

    INFO:root:Skipped Telldus-FT0385R: humidity_2
    INFO:root:Published Telldus-FT0385R: time, temperature_C, humidity, ...

After:

    [2023-07-14T22:53:31+0200] INFO:root:Skipped Telldus-FT0385R: humidity_2
    [2023-07-14T22:53:31+0200] INFO:root:Published Telldus-FT0385R: time, temperature_C, humidity, ...
@zuckschwerdt zuckschwerdt merged commit 2cb87ce into merbanan:master Jul 14, 2023
@zuckschwerdt
Copy link
Collaborator

Thanks, very well written PR.

andrewjw pushed a commit to andrewjw/rtl_433 that referenced this pull request Sep 29, 2023
Prefix log entries with a timestamp to make it easier to determine when an event happened.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants