summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-01-20 13:52:10 -0800
committerTim Smith <tsmith@chef.io>2017-01-20 13:52:10 -0800
commit14b5ce46995242e5e7579e3da04ab6eec7322732 (patch)
treee63565070b1f28c131211ad5f182bd837cd19a38
parentd6bbce1f90abd5065d1a7eca426048767e2ef30b (diff)
downloadohai-14b5ce46995242e5e7579e3da04ab6eec7322732.tar.gz
Consistent logging
-rw-r--r--lib/ohai/plugins/c.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ohai/plugins/c.rb b/lib/ohai/plugins/c.rb
index 00c918c2..f761455a 100644
--- a/lib/ohai/plugins/c.rb
+++ b/lib/ohai/plugins/c.rb
@@ -20,7 +20,6 @@ require "rbconfig"
Ohai.plugin(:C) do
provides "languages/c"
-
depends "languages"
def collect(cmd, &block)
@@ -38,14 +37,14 @@ Ohai.plugin(:C) do
Ohai::Log.debug("Checking for Xcode Command Line Tools.")
so = shell_out("/usr/bin/xcode-select -p")
if so.exitstatus == 0
- Ohai::Log.debug("Xcode Command Line Tools found.")
+ Ohai::Log.debug("Plugin C: Xcode Command Line Tools found.")
return true
else
- Ohai::Log.debug("Xcode Command Line Tools not found.")
+ Ohai::Log.debug("Plugin C: Xcode Command Line Tools not found.")
return false
end
rescue Ohai::Exceptions::Exec
- Ohai::Log.debug("xcode-select binary could not be found. Skipping data.")
+ Ohai::Log.debug("Plugin C: xcode-select binary could not be found. Skipping data.")
end
def collect_gcc