summaryrefslogtreecommitdiff
path: root/lib/ohai/config.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-06 13:17:35 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-06 13:17:35 -0800
commit7c36738552c4bb33406513bb9f17a2a13da959eb (patch)
tree55227877d020c79bc8a77eeae9d147a165fdf1ef /lib/ohai/config.rb
parentc9a06eccb4686e6b58756ca8ee69ebaa5a3cb7b3 (diff)
downloadohai-7c36738552c4bb33406513bb9f17a2a13da959eb.tar.gz
send log output to STDERR by default
mixing up JSON output with STDOUT warnings and errors is guaranteed to annoy all the people.
Diffstat (limited to 'lib/ohai/config.rb')
-rw-r--r--lib/ohai/config.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ohai/config.rb b/lib/ohai/config.rb
index cad7de3b..38c714ec 100644
--- a/lib/ohai/config.rb
+++ b/lib/ohai/config.rb
@@ -6,9 +6,9 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -21,7 +21,7 @@ require 'mixlib/config'
module Ohai
class Config
extend Mixlib::Config
-
+
# from chef/config.rb, should maybe be moved to mixlib-config?
def self.platform_specific_path(path)
if RUBY_PLATFORM =~ /mswin|mingw|windows/
@@ -32,10 +32,10 @@ module Ohai
end
path
end
-
+
default :log_level, :info
- default :log_location, STDOUT
+ default :log_location, STDERR
default :plugin_path, [ File.expand_path(File.join(File.dirname(__FILE__), 'plugins'))]
default :disabled_plugins, []
default(:hints_path) { [ platform_specific_path('/etc/chef/ohai/hints') ] }