lib/rack/insight/instrumentation/probe.rb in rack-insight-0.5.4 vs lib/rack/insight/instrumentation/probe.rb in rack-insight-0.5.5
- old
+ new
@@ -64,10 +64,11 @@
def probes
@probes ||= Hash.new do |h,k|
begin
h[k] = self.new(const_from_name(k))
rescue NameError
- logger.warn{ "Cannot find constant: #{k}" }
+ logger.warn{ "Cannot find constant: #{k}" } if verbose(:med)
+ false
end
end
end
def all_probes