summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Davis <andrew.affinity@gmail.com>2021-05-19 23:14:50 +0800
committerAndrew Davis <andrew.affinity@gmail.com>2021-09-25 20:15:56 +0800
commit5f57219003620c8dab804faacbee94b70c17793a (patch)
treed5b8107959e59849cc06dedfee65e06a8b5f5d76
parentc31cfa6d54ff3ae94bc1b6438a5b3ac21f6627a4 (diff)
downloadohai-5f57219003620c8dab804faacbee94b70c17793a.tar.gz
log plugin exception at warn level
Signed-off-by: Andrew Davis <andrew.affinity@gmail.com>
-rw-r--r--lib/ohai/runner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/runner.rb b/lib/ohai/runner.rb
index 02c30a19..f9a14f0b 100644
--- a/lib/ohai/runner.rb
+++ b/lib/ohai/runner.rb
@@ -61,7 +61,7 @@ module Ohai
rescue Ohai::Exceptions::Error, SystemExit # SystemExit: abort or exit from plug-in should exit Ohai with failure code
raise
rescue Exception => e
- logger.trace("Plugin #{plugin.name} threw exception #{e.inspect} #{e.backtrace.join("\n")}")
+ logger.warn("Plugin #{plugin.name} threw exception #{e.inspect} #{e.backtrace.join("\n")}")
end
end
logger.trace("Plugin #{plugin.name} took #{"%f" % elapsed.truncate(6)} seconds to run.")