lib/ab_admin/utils/logger.rb in ab_admin-0.5.0 vs lib/ab_admin/utils/logger.rb in ab_admin-0.6.0
- old
+ new
@@ -4,10 +4,10 @@
class ExtendedLogger < ::Logger
def exception(e, options={})
message = "#{e.message} #{"DATA:#{options[:data].inspect}" if options && options[:data]}"
backtrace = e.backtrace.map { |l| "#{' ' * 2}#{l}" }.join("\n")
- error("#{message}\n#{backtrace}\n\n")
+ error("#{e.class} #{message}\n#{backtrace}\n\n")
end
def reopen
@logdev = LogDevice.new(@logdev.filename)
end
\ No newline at end of file