diff options
Diffstat (limited to 'lib/ohai/mixin/command.rb')
-rw-r--r-- | lib/ohai/mixin/command.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ohai/mixin/command.rb b/lib/ohai/mixin/command.rb index a6105ba0..f1236754 100644 --- a/lib/ohai/mixin/command.rb +++ b/lib/ohai/mixin/command.rb @@ -37,13 +37,13 @@ module Ohai so = Mixlib::ShellOut.new(cmd, options) begin so.run_command - Ohai::Log.debug("Plugin #{name}: ran '#{cmd}' and returned #{so.exitstatus}") + logger.trace("Plugin #{name}: ran '#{cmd}' and returned #{so.exitstatus}") so rescue Errno::ENOENT => e - Ohai::Log.debug("Plugin #{name}: ran '#{cmd}' and failed #{e.inspect}") + logger.trace("Plugin #{name}: ran '#{cmd}' and failed #{e.inspect}") raise Ohai::Exceptions::Exec, e rescue Mixlib::ShellOut::CommandTimeout => e - Ohai::Log.debug("Plugin #{name}: ran '#{cmd}' and timed out after #{options[:timeout]} seconds") + logger.trace("Plugin #{name}: ran '#{cmd}' and timed out after #{options[:timeout]} seconds") raise Ohai::Exceptions::Exec, e end end |