Skip to content

Commit 9ba5ada

Browse files
committed
fix: address review comments
1 parent c158659 commit 9ba5ada

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

commerce_coordinator/settings/local.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@
113113

114114
ENABLE_AUTO_AUTH = True
115115

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+
)
117121
LOGGING = get_logger_config(debug=DEBUG, format_string=LOGGING_FORMAT_STRING)
118122

119123
CELERY_BROKER_URL = "redis://:password@localhost:6379/0"

commerce_coordinator/settings/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_env_setting(setting):
1717
def get_logger_config(logging_env="no_env",
1818
debug=False,
1919
service_variant='commerce-coordinator',
20-
format_string=''):
20+
format_string=""):
2121
"""
2222
Return the appropriate logging config dictionary. You should assign the
2323
result of this to the LOGGING var in your settings.

0 commit comments

Comments
 (0)