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
Using Klein with Twisted.logger #405
Labels
Comments
@aunsbjerg is there some code we can look at? |
@wsanchez sorry for late reply, updated issue with example. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an application that is based on twisted and uses klein for a web interface. I am starting the reactor manually, as per https://klein.readthedocs.io/en/latest/examples/alternativerunning.html#example-manually-running-the-reactor and that's working fine. So far, I have used the legacy twisted.python log interface in all my application, but am moving to the new twisted.logger log interface.
The issue I'm facing now is that all log messages from Klein seem to be formatted twice, first with twisted log formatting and then with kleins own formatting. Example:
2020-11-08T10:58:09+0100 [twisted.python.log#info] "127.0.0.1" - - [08/Nov/2020:09:58:09 +0000] ...
.Is there any way to change Kleins log formatting?
Minimal representative example:
When running the app and accessing index on localhost, the log output is like this:
The text was updated successfully, but these errors were encountered: