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

%k not recognized as valid format string #137

Open
GabrielRullan opened this issue Apr 30, 2022 · 0 comments
Open

%k not recognized as valid format string #137

GabrielRullan opened this issue Apr 30, 2022 · 0 comments

Comments

@GabrielRullan
Copy link

File "C:\Users\Gabriel\AppData\Local\Programs\Python\Python38\lib\site-packages\flogging\flogging.py", line 96, in format_datetime return dt.strftime("%Y-%m-%dT%k:%M:%S.%f000") + tzstr ValueError: Invalid format string
on running
$ LOG_STRUCTURED=True python scripts/data_loader.py -t csv > data_loading.log
changing %k to %h in line

return dt.strftime("%Y-%m-%dT%k:%M:%S.%f000") + tzstr

seems to do the trick

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