Permalink
Browse files

log exceptions using the fatal log level

  • Loading branch information...
1 parent 185680b commit f1a9be2c5ad303f0350614b9613066ff06e3b1a8 Benedikt Böhm committed Aug 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/madvertise/logging/improved_logger.rb
@@ -128,13 +128,13 @@ def <<(msg)
alias write <<
- # Log an exception with error level.
+ # Log an exception with fatal level.
#
# @param [Exception, String] exc The exception to log. If exc is a
# String no backtrace will be generated.
def exception(exc)
exc = "EXCEPTION: #{exc.message}: #{clean_trace(exc.backtrace)}" if exc.is_a?(::Exception)
- add(:error, exc, true)
+ add(:fatal, exc, true)
end
# Save the current token and associate it with obj#object_id.

0 comments on commit f1a9be2

Please sign in to comment.