File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
commerce_coordinator/settings Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 113
113
114
114
ENABLE_AUTO_AUTH = True
115
115
116
- LOGGING_FORMAT_STRING = os .environ .get ("LOGGING_FORMAT_STRING" , "" )
116
+ # Default logging format string
117
+ LOGGING_FORMAT_STRING = (
118
+ "%(asctime)s %(levelname)s %(process)d [%(name)s] [user %(userid)s] "
119
+ "[ip %(remoteip)s] %(filename)s:%(lineno)d - %(message)s"
120
+ )
117
121
LOGGING = get_logger_config (debug = DEBUG , format_string = LOGGING_FORMAT_STRING )
118
122
119
123
CELERY_BROKER_URL = "redis://:password@localhost:6379/0"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def get_env_setting(setting):
17
17
def get_logger_config (logging_env = "no_env" ,
18
18
debug = False ,
19
19
service_variant = 'commerce-coordinator' ,
20
- format_string = '' ):
20
+ format_string = "" ):
21
21
"""
22
22
Return the appropriate logging config dictionary. You should assign the
23
23
result of this to the LOGGING var in your settings.
You can’t perform that action at this time.
0 commit comments