summaryrefslogtreecommitdiff
path: root/lib/chef/log
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-05-07 09:15:02 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-05-07 09:20:32 -0700
commit3d65e1d22f03e24cace59b2b4d389a01c1890d40 (patch)
treeefd564e11367730e1630fd59ce5d2f615d218641 /lib/chef/log
parentd7944227b284b6b75d638d1a2a4ea917857c3f4c (diff)
downloadchef-3d65e1d22f03e24cace59b2b4d389a01c1890d40.tar.gz
Only require win32/eventlog once
Diffstat (limited to 'lib/chef/log')
-rw-r--r--lib/chef/log/winevt.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/chef/log/winevt.rb b/lib/chef/log/winevt.rb
index f138751991..6574f50b51 100644
--- a/lib/chef/log/winevt.rb
+++ b/lib/chef/log/winevt.rb
@@ -20,17 +20,6 @@ require 'chef/event_loggers/base'
require 'chef/platform/query_helpers'
require 'chef/mixin/unformatter'
-if Chef::Platform::windows? and not Chef::Platform::windows_server_2003?
- if defined? Windows::Constants
- [:INFINITE, :WAIT_FAILED, :FORMAT_MESSAGE_IGNORE_INSERTS, :ERROR_INSUFFICIENT_BUFFER].each do |c|
- # These are redefined in 'win32/eventlog'
- Windows::Constants.send(:remove_const, c) if Windows::Constants.const_defined? c
- end
- end
-
- require 'win32/eventlog'
-end
-
class Chef
class Log
#