Sha256: b081e7c54309ea28533a47be3e248e3298521ec2ebf8a7db2b3587f828a660fe
Contents?: true
Size: 584 Bytes
Versions: 30
Compression:
Stored size: 584 Bytes
Contents
module Timber # Base class for `Timber::Probes::*`. # @private class Probe class RequirementNotMetError < StandardError; end class << self def insert!(*args) new(*args).insert! Config.instance.logger.debug("Inserted probe #{name}") true # RequirementUnsatisfiedError is the only silent failure we support rescue RequirementNotMetError => e Config.instance.logger.debug("Failed inserting probe #{name}: #{e.message}") false end end def insert! raise NotImplementedError.new end end end
Version data entries
30 entries across 30 versions & 2 rubygems