-
Notifications
You must be signed in to change notification settings - Fork 21
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
dockerflow.logging.JsonLogFormatter is weird about %s style logging #29
Comments
Contrast that with regular "verbose" logging:
|
The "cause" of this is that the if message and not message.startswith('{') and not message.endswith('}'): ...it decides to not include the message. I'm trying to parse that code comment two lines above but struggling to understand what it means |
Because I'm timely desperate for a solution, here's how I solved it:
By making sure the logging message string has an extra character that is not |
I have this config:
When I do:
Notice that when the param to
logger.debug(template, THIS)
isn't a string the final "msg" becomes empty ("Fields": {}
).The text was updated successfully, but these errors were encountered: