Enable Django debug logging to /var/log/django_debug.log
diff --git a/xos/xos/settings.py b/xos/xos/settings.py
index c8b0b07..221b046 100644
--- a/xos/xos/settings.py
+++ b/xos/xos/settings.py
@@ -176,6 +176,7 @@
'services.hpc',
'services.cord',
'services.helloworldservice_complete',
+ 'services.exampleservice',
'services.onos',
'services.ceilometer',
'services.requestrouter',
@@ -209,13 +210,23 @@
}
},
'handlers': {
+ 'file': {
+ 'level': 'DEBUG',
+ 'class': 'logging.FileHandler',
+ 'filename': '/var/log/django_debug.log',
+ },
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
- }
+ },
},
'loggers': {
+ 'django': {
+ 'handlers': ['file'],
+ 'level': 'DEBUG',
+ 'propagate': True,
+ },
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',