I think we should add a little change in capture_stdio: if syslog works: sys.excepthook = lambda * exc_info: \ logger.critical(_('UNCAUGHT EXCEPTION'), exc_info=exc_info) else: print xxxxx
I think we should add a little change in capture_stdio:
logger. critical( _('UNCAUGHT EXCEPTION'), exc_info=exc_info)
if syslog works:
sys.excepthook = lambda * exc_info: \
else:
print xxxxx