-
Notifications
You must be signed in to change notification settings - Fork 172
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
chore: allow custom log formatter #4513
Conversation
@@ -24,6 +24,8 @@ | |||
# the values read from disk should UPDATE the pre-configured dicts. | |||
DICT_UPDATE_KEYS = ('JWT_AUTH',) | |||
|
|||
LOGGING_FORMAT_STRING = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be empty in production.py?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you mean to set this in base.py?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Though I have done it now. It should work either way.
'format': '%(asctime)s %(levelname)s %(process)d ' | ||
'[%(name)s] %(filename)s:%(lineno)d - %(message)s', | ||
'format': LOGGING_FORMAT_STRING or '%(asctime)s %(levelname)s %(process)d ' | ||
'[%(name)s] %(filename)s:%(lineno)d - %(message)s' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: why is this tabbed space added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to align the lower part of the string with the top
PROD-4241
This PR adds a new settings variable to configure the way logs are formatted