summaryrefslogtreecommitdiff
path: root/lib/chef/log.rb
diff options
context:
space:
mode:
authorsawanoboly <sawanoboriyu@higanworks.com>2015-04-23 15:25:14 +0900
committerLamont Granquist <lamont@scriptkiddie.org>2015-05-06 15:09:44 -0700
commit9a0f9d284424f9d38edc3df184271492dd8f2472 (patch)
treeba4ec85f538419e3b3279951e876d3bbfadd969f /lib/chef/log.rb
parent76e5b5a91dd1b92486a8b21a8fcc206ba321f6ab (diff)
downloadchef-9a0f9d284424f9d38edc3df184271492dd8f2472.tar.gz
add unit specs for Chef::Log::Syslog
Diffstat (limited to 'lib/chef/log.rb')
-rw-r--r--lib/chef/log.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/log.rb b/lib/chef/log.rb
index a5ba5059ac..d11e16b1f3 100644
--- a/lib/chef/log.rb
+++ b/lib/chef/log.rb
@@ -35,6 +35,7 @@ class Chef
def initialize(program_name = 'chef-client', facility = ::Syslog::LOG_DAEMON, logopts=nil)
super
+ return if defined? ::Logger::Syslog::SYSLOG
::Logger::Syslog.const_set :SYSLOG, SYSLOG
end