Revision 824a3af6
Added by Marc Dequènes almost 12 years ago
bin/postman | ||
---|---|---|
# it also tests search parameters (provided to setup_connection)
|
||
ActiveLdap::Base.find(:first)
|
||
rescue
|
||
logger.fatal "LDAP failure: " + $!
|
||
logger.fatal "LDAP failure: %s" % $!
|
||
exit 1
|
||
end
|
||
|
||
... | ... | |
rescue CyberError => e
|
||
raise
|
||
rescue
|
||
logger.error "Mail processing crashed unexpectedly: " + $!
|
||
logger.error "Crash class: " + $!.class.to_s
|
||
logger.error "Crash trace: " + $!.backtrace.join("\n")
|
||
logger.error "Mail processing crashed unexpectedly: %s" % $!
|
||
logger.error "Crash class: %s" % $!.class.to_s
|
||
logger.error "Crash trace: %s" % $!.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")
|
||
logger.error "IMAP processing crashed unexpectedly: %s" % $!
|
||
logger.error "Crash class: %s" % $!.class.to_s
|
||
logger.error "Crash trace: %s" % $!.backtrace.join("\n")
|
||
end
|
||
logger.info "Bot terminating"
|
||
end
|
Also available in: Unified diff
[fix] use sprintf-like operator and count upon stringification instead of bare concatenation