lib/celluloid/logging/incident_reporter.rb in celluloid-essentials-0.20.0.pre14 vs lib/celluloid/logging/incident_reporter.rb in celluloid-essentials-0.20.0.pre15

- old
+ new

@@ -1,15 +1,15 @@ -require 'logger' +require "logger" module Celluloid # Subscribes to log incident topics to report on them. class IncidentReporter include Celluloid include Celluloid::Notifications # get the time from the event class Formatter < ::Logger::Formatter - def call(severity, time, progname, msg) + def call(severity, _time, progname, msg) super(severity, msg.time, progname, msg.message) end end def initialize(*args) @@ -17,10 +17,10 @@ @logger = ::Logger.new(*args) @logger.formatter = Formatter.new @silenced = false end - def report(topic, incident) + def report(_topic, incident) return if @silenced header = "INCIDENT" header << " AT #{incident.triggering_event.time}" if incident.triggering_event @logger << header