lib/timber/logger.rb in timber-2.0.20 vs lib/timber/logger.rb in timber-2.0.21

- old
+ new

@@ -113,11 +113,12 @@ # included in the log lines. class SimpleFormatter < Formatter # This method is invoked when a log event occurs def call(severity, timestamp, progname, msg) - "#{String === msg ? msg : msg.inspect}\n" + log_entry = build_log_entry(severity, timestamp, progname, msg) + log_entry.to_s end end # Structures your log messages as strings and appends metadata if # `Timber::Config.instance.append_metadata?` is true. @@ -195,10 +196,10 @@ self.formatter = StringFormatter.new end self.level = environment_level - after_initialize if respond_to? :after_initialize + after_initialize if respond_to?(:after_initialize) @initialized = true end def formatter=(value) \ No newline at end of file