Skip to content

fix: incorrect datetime format for strftime() in windows #558

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

Merged

Conversation

protokoul
Copy link
Contributor

The datetime format used with Structlog's configuration inside setup_logging() in src/codegate/codegate_logging.py is passed to strftime(), which works on Linux but returns an error on Windows. Changed the datetime format so it works on Linux as well as Windows.

Resolves #556

The datetime format passed to Structlog's configuration
inside setup_logging() in src/codegate/codegate_logging.py
works on Linux but returns an error on Windows. Changed
the datetime format so it works on Linux as well as Windows.
@lukehinds lukehinds merged commit b49a985 into stacklok:main Jan 13, 2025
@lukehinds
Copy link
Contributor

@protokoul this will ship in the next release coming today

@protokoul
Copy link
Contributor Author

Thank you @lukehinds. This is awesome 😄

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.

Invalid format string error when starting the server on Windows
2 participants