summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2020-04-01 18:46:46 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-16 12:55:53 +0200
commit7b31ba541f1dfb3a8e782b1319c25a24f9d86f8a (patch)
tree5072dd049da1d1c58b385b47a24210402342f5e3 /django
parent96c6f9c61c62af8e2e258642b21351484e61b644 (diff)
Fixed #29329 -- Made datetime logging from runserver more consistent.
Setting default_msec_format=None will make it the same, unfortunately it's not supported by Python, see https://bugs.python.org/issue40300.
Diffstat (limited to 'django')
-rw-r--r--django/utils/log.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/utils/log.py b/django/utils/log.py
index 717c15814c..3d3e8701c7 100644
--- a/django/utils/log.py
+++ b/django/utils/log.py
@@ -160,6 +160,8 @@ class RequireDebugTrue(logging.Filter):
class ServerFormatter(logging.Formatter):
+ default_time_format = '%d/%b/%Y %H:%M:%S'
+
def __init__(self, *args, **kwargs):
self.style = color_style()
super().__init__(*args, **kwargs)