File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1212# https://docs.djangoproject.com/en/1.11/ref/settings/#debug
1313DEBUG = bool (os .environ .get ('DEIS_DEBUG' , False ))
1414
15+ # A boolean flag that turns on/off verbose logging.
16+ LOG_VERBOSE = bool (os .environ .get ('LOG_VERBOSE' , False ))
17+
1518# If set to True, Django's normal exception handling of view functions
1619# will be suppressed, and exceptions will propagate upwards
1720# https://docs.djangoproject.com/en/1.11/ref/settings/#debug-propagate-exceptions
175178 'root' : {'level' : 'DEBUG' if DEBUG else 'INFO' },
176179 'formatters' : {
177180 'verbose' : {
178- 'format' : '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
181+ 'format' : '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' ,
182+ 'datefmt' : '%Y-%m-%dT%H:%M:%SZ' ,
179183 },
180184 'simple' : {
181185 'format' : '%(levelname)s %(message)s'
197201 'console' : {
198202 'level' : 'DEBUG' ,
199203 'class' : 'logging.StreamHandler' ,
200- 'formatter' : 'simple'
204+ 'formatter' : 'verbose' if LOG_VERBOSE else ' simple'
201205 }
202206 },
203207 'loggers' : {
You can’t perform that action at this time.
0 commit comments