Sha256: eee6df0135f4afdb514bffa4322f42c70b150014436eaf7c495194a4566b1747
Contents?: true
Size: 356 Bytes
Versions: 4
Compression:
Stored size: 356 Bytes
Contents
module Berkshelf module Mixin module Logging def log Berkshelf::Logger end # Log an exception and its backtrace to FATAL # # @param [Exception] ex def log_exception(ex) log.fatal("#{ex.class}: #{ex}") log.fatal(ex.backtrace.join("\n")) unless ex.backtrace.nil? end end end end
Version data entries
4 entries across 4 versions & 1 rubygems