Browse files

Update constants for eventlog from lastest gem changes.

  • Loading branch information...
1 parent d353f47 commit aa5816a7e0b49bd76ebe327f4acb5ed1532b30d4 @scottdensmore scottdensmore committed Feb 13, 2014
Showing with 9 additions and 9 deletions.
  1. +7 −7 lib/steno/sink/eventlog.rb
  2. +1 −1 lib/steno/version.rb
  3. +1 −1 spec/unit/sink/eventlog_spec.rb
View
14 lib/steno/sink/eventlog.rb
@@ -9,13 +9,13 @@ class Steno::Sink::Eventlog < Steno::Sink::Base
include Singleton
LOG_LEVEL_MAP = {
- :fatal => Win32::EventLog::ERROR,
- :error => Win32::EventLog::ERROR,
- :warn => Win32::EventLog::WARN,
- :info => Win32::EventLog::INFO,
- :debug => Win32::EventLog::INFO,
- :debug1 => Win32::EventLog::INFO,
- :debug2 => Win32::EventLog::INFO,
+ :fatal => Win32::EventLog::ERROR_TYPE,
+ :error => Win32::EventLog::ERROR_TYPE,
+ :warn => Win32::EventLog::WARN_TYPE,
+ :info => Win32::EventLog::INFO_TYPE,
+ :debug => Win32::EventLog::INFO_TYPE,
+ :debug1 => Win32::EventLog::INFO_TYPE,
+ :debug2 => Win32::EventLog::INFO_TYPE,
}
def initialize
View
2 lib/steno/version.rb
@@ -1,3 +1,3 @@
module Steno
- VERSION = "1.2.2"
+ VERSION = "1.2.3"
end
View
2 spec/unit/sink/eventlog_spec.rb
@@ -25,7 +25,7 @@
sink.codec = codec
eventlog.should_receive(:report_event).with(:source => "CloudFoundry",
- :event_type => Win32::EventLog::INFO,
+ :event_type => Win32::EventLog::INFO_TYPE,
:data => record.message)
sink.add_record(record)

0 comments on commit aa5816a

Please sign in to comment.