summaryrefslogtreecommitdiff
path: root/lib/chef/log
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-05-07 09:20:41 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-05-07 09:20:41 -0700
commit6687bae7bede7919dd50c78379425c76fd3fca70 (patch)
treea669eff36b8877e6828a8da4e7f86d578c689c52 /lib/chef/log
parent3d65e1d22f03e24cace59b2b4d389a01c1890d40 (diff)
downloadchef-6687bae7bede7919dd50c78379425c76fd3fca70.tar.gz
Allow units to for winevt to run everywhere
Diffstat (limited to 'lib/chef/log')
-rw-r--r--lib/chef/log/winevt.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/log/winevt.rb b/lib/chef/log/winevt.rb
index 6574f50b51..e355ff8162 100644
--- a/lib/chef/log/winevt.rb
+++ b/lib/chef/log/winevt.rb
@@ -41,8 +41,8 @@ class Chef
attr_accessor :sync, :formatter, :level
- def initialize
- @eventlog = ::Win32::EventLog::open('Application')
+ def initialize(eventlog=nil)
+ @eventlog = eventlog || ::Win32::EventLog::open('Application')
end
def close