Project

General

Profile

« Previous | Next » 

Revision 85fb699c

Added by Marc Dequènes almost 11 years ago

[debug] more debug information in case of crash

View differences:

bin/postman
rescue CyberError => e
raise
rescue
logger.error "Mail processing crashed unexpectedly: %s" % $!
logger.error "Mail processing crashed unexpectedly: %s" % $!.message
logger.error "Crash class: %s" % $!.class.to_s
if $!.class == GPGME::Error::General
logger.error "GPG error code: %s" % $!.code
logger.error "GPG error source: %s" % $!.source
end
logger.error "Crash trace: %s" % $!.backtrace.join("\n")
false
end
end
rescue
logger.error "IMAP processing crashed unexpectedly: %s" % $!
logger.error "IMAP processing crashed unexpectedly: %s" % $!.message
logger.error "Crash class: %s" % $!.class.to_s
logger.error "Crash trace: %s" % $!.backtrace.join("\n")
end

Also available in: Unified diff