lib/ohai/dsl/plugin.rb
def safe_run
        begin
          self.run
        rescue Ohai::Exceptions::Error => e
          raise e
        rescue => e
          Ohai::Log.debug("Plugin #{self.name} threw #{e.inspect}")
          e.backtrace.each { |line| Ohai::Log.debug( line )}
        end
      end
# emulates the old plugin loading behavior
emulates the old plugin loading behavior
emulates the old plugin loading behavior
def safe_run
        begin
          self.run
        rescue Ohai::Exceptions::Error => e
          raise e
        rescue => e
          Ohai::Log.debug("Plugin #{self.name} threw #{e.inspect}")
          e.backtrace.each { |line| Ohai::Log.debug( line )}
        end
      end
def safe_run begin self . run rescue Ohai :: Exceptions :: Error => e raise e rescue => e Ohai :: Log . debug ( "Plugin #{self.name} threw #{e.inspect}" ) e . backtrace . each { | line | Ohai :: Log . debug ( line ) } end end
emulates the old plugin loading behavior
emulates the old plugin loading behavior