Fixed console logging

This commit is contained in:
Fergal Moran
2015-07-26 20:43:24 +01:00
parent 6f262f1ec5
commit d4cfae3add
2 changed files with 11 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
import os
import sys
from dss import localsettings
if os.name == 'posix':
@@ -20,11 +21,14 @@ LOGGING = {
},
'handlers': {
'file': {
'level': 'DEBUG',
'level': 'INFO',
'class': 'logging.FileHandler',
'filename': LOG_FILE,
'formatter': 'verbose'
},
}, 'console': {
'class': 'logging.StreamHandler',
'stream': sys.stdout,
}
},
'loggers': {
'django': {
@@ -33,7 +37,7 @@ LOGGING = {
'level': 'DEBUG',
},
'spa': {
'handlers': ['file'],
'handlers': ['file', 'console'],
'level': 'DEBUG',
},
}