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

Time formatting in logs #78

Merged
merged 1 commit into from
Apr 23, 2024
Merged

Time formatting in logs #78

merged 1 commit into from
Apr 23, 2024

Conversation

lkiesow
Copy link
Member

@lkiesow lkiesow commented Apr 23, 2024

This patch improves the time formatting in logs by not only showing the number of seconds. A few examples:

DEBUG:occameracontrol.camera:[test] Next event `Demo event` starts in 2 days, 1:55:51
DEBUG:occameracontrol.camera:[test] Next event `Demo event` starts in 0:00:32
DEBUG:occameracontrol.camera:[test] Active event `Demo event` ends in 0:00:17

This fixes #55

This patch improves the time formatting in logs by not only showing the
number of seconds. A few examples:

```
DEBUG:occameracontrol.camera:[test] Next event `Demo event` starts in 2 days, 1:55:51
DEBUG:occameracontrol.camera:[test] Next event `Demo event` starts in 0:00:32
DEBUG:occameracontrol.camera:[test] Active event `Demo event` ends in 0:00:17
```

This fixes #55
@janmn janmn merged commit ebe8832 into main Apr 23, 2024
14 checks passed
@lkiesow lkiesow deleted the time-fmt branch April 23, 2024 16:50
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.

Time formatting in logs
2 participants