I need to unmount the django module (using http://noah.org/wiki/Daemonize_Python ).
At the beginning of the daemonize file, I do “import settings” (or “from django.conf import options”) to get the stdout and stderr file names. When I call daemonize with these file names, ALL logging is done for stderr and nothing is logged to stdout. Does anyone have an idea why this is happening?
I am using standard django logging
LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'mail_admins': { 'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler' } }, 'loggers': { 'django.request': { 'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True, }, 'django.db.backends': { 'level': 'INFO', }, } }
Thanks!
source share