Revision a1df93fe
Added by Marc Dequènes about 13 years ago
- ID a1df93fe89c90e7414a567077eb0336e902541ce
bin/postman | ||
---|---|---|
rescue CyberError => e
|
||
raise
|
||
rescue
|
||
logger.error "Mail processing crashed: " + $!
|
||
logger.error "Mail processing crashed unexpectedly: " + $!
|
||
logger.error "Crash class: " + $!.class.to_s
|
||
logger.error "Crash trace: " + $!.backtrace.join("\n")
|
||
true
|
||
end
|
||
end
|
||
rescue
|
||
logger.error "IMAP processing crashed unexpectedly: " + $!
|
||
logger.error "Crash class: " + $!.class.to_s
|
||
logger.error "Crash trace: " + $!.backtrace.join("\n")
|
||
end
|
||
|
||
def stop(condition)
|
Also available in: Unified diff
[debug] catch mail check crashes for debug purpose and stop gracefully