lib/logster/defer_logger.rb in logster-2.1.0 vs lib/logster/defer_logger.rb in logster-2.1.1

- old
+ new

@@ -1,14 +1,14 @@ -require 'logster/scheduler' - -module Logster - class DeferLogger < ::Logster::Logger - private - - def report_to_store(severity, progname, message, opts = {}) - opts[:backtrace] ||= caller - Logster::Scheduler.schedule do - super(severity, progname, message, opts) - end - end - end -end +require 'logster/scheduler' + +module Logster + class DeferLogger < ::Logster::Logger + private + + def report_to_store(severity, progname, message, opts = {}) + opts[:backtrace] ||= caller + Logster::Scheduler.schedule do + super(severity, progname, message, opts) + end + end + end +end