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

duologsync crashes on timestamp formatting #12

Open
tsmori opened this issue Sep 29, 2020 · 0 comments
Open

duologsync crashes on timestamp formatting #12

tsmori opened this issue Sep 29, 2020 · 0 comments

Comments

@tsmori
Copy link

tsmori commented Sep 29, 2020

When running, the logs do get sent, but the app will crash with:

ValueError: time data '2020-09-29T15:06:14+00:00' does not match format '%Y-%m-%dT%H:%M:%S.%f+00:00'

Looking at the logs I'm receiving and I didn't see that isotimestamp contains the microsecond part of the formatting:

"isotimestamp": "2020-09-29T15:06:14+00:00"

I checked through a few hundred entries and didn't see it anywhere. Removing the .%f from duologsync/producer/producer.py and reinstalling fixed this for me.

Note that I do not know if the time formatting is configurable from the Duo side or if this is the default way the isotimestamp is configured. It would probably be better for any time stamp formatting to be put into the config and not hardcoded.

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

No branches or pull requests

1 participant