diff options
-rw-r--r-- | lib/chef/logging/windows_eventlog.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/logging/windows_eventlog.rb b/lib/chef/logging/windows_eventlog.rb index f4536a9ebe..16dedb12ed 100644 --- a/lib/chef/logging/windows_eventlog.rb +++ b/lib/chef/logging/windows_eventlog.rb @@ -1,4 +1,8 @@ -require 'chef/logging/event_log' +[: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) +end +require 'chef/logging/eventlog' require 'win32/eventlog' include Win32 |