lib/timber/probe.rb in timberio-1.0.0.beta1 vs lib/timber/probe.rb in timberio-1.0.0

- old
+ new

@@ -1,21 +1,23 @@ module Timber + # Base class for `Timber::Probes::*`. + # @private class Probe class RequirementNotMetError < StandardError; end class << self def insert!(*args) new(*args).insert! - Config.logger.debug("Inserted probe #{name}") + Config.instance.logger.debug("Inserted probe #{name}") true # RequirementUnsatisfiedError is the only silent failure we support rescue RequirementNotMetError => e - Config.logger.debug("Failed inserting probe #{name}: #{e.message}") + Config.instance.logger.debug("Failed inserting probe #{name}: #{e.message}") false end end def insert! - raise NotImplementedError.new("You must implement #insert") + raise NotImplementedError.new end end -end +end \ No newline at end of file