Module: Berkshelf::Mixin::Logging
Instance Method Summary collapse
- #log ⇒ Object
-
#log_exception(ex) ⇒ Object
Log an exception and it’s backtrace to FATAL.
Instance Method Details
#log_exception(ex) ⇒ Object
Log an exception and it’s backtrace to FATAL
11 12 13 14 |
# File 'lib/berkshelf/mixin/logging.rb', line 11 def log_exception(ex) log.fatal("#{ex.class}: #{ex}") log.fatal(ex.backtrace.join("\n")) unless ex.backtrace.nil? end |