File tree 1 file changed +11
-14
lines changed 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -1933,30 +1933,28 @@ This dictionary is passed to :func:`~config.dictConfig` to put the configuration
1933
1933
1934
1934
LOGGING = {
1935
1935
'version': 1,
1936
- 'disable_existing_loggers': True ,
1936
+ 'disable_existing_loggers': False ,
1937
1937
'formatters': {
1938
1938
'verbose': {
1939
- 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
1939
+ 'format': '{levelname} {asctime} {module} {process:d} {thread:d} {message}',
1940
+ 'style': '{',
1940
1941
},
1941
1942
'simple': {
1942
- 'format': '%(levelname)s %(message)s'
1943
+ 'format': '{levelname} {message}',
1944
+ 'style': '{',
1943
1945
},
1944
1946
},
1945
1947
'filters': {
1946
1948
'special': {
1947
1949
'()': 'project.logging.SpecialFilter',
1948
1950
'foo': 'bar',
1949
- }
1951
+ },
1950
1952
},
1951
1953
'handlers': {
1952
- 'null': {
1953
- 'level':'DEBUG',
1954
- 'class':'django.utils.log.NullHandler',
1955
- },
1956
- 'console':{
1957
- 'level':'DEBUG',
1958
- 'class':'logging.StreamHandler',
1959
- 'formatter': 'simple'
1954
+ 'console': {
1955
+ 'level': 'INFO',
1956
+ 'class': 'logging.StreamHandler',
1957
+ 'formatter': 'simple',
1960
1958
},
1961
1959
'mail_admins': {
1962
1960
'level': 'ERROR',
@@ -1966,9 +1964,8 @@ This dictionary is passed to :func:`~config.dictConfig` to put the configuration
1966
1964
},
1967
1965
'loggers': {
1968
1966
'django': {
1969
- 'handlers':['null '],
1967
+ 'handlers': ['console '],
1970
1968
'propagate': True,
1971
- 'level':'INFO',
1972
1969
},
1973
1970
'django.request': {
1974
1971
'handlers': ['mail_admins'],
You can’t perform that action at this time.
0 commit comments