Skip to content

Commit

Permalink
Merge pull request #28 from rightscale/ivory_13_18_acu138418_fix_logg…
Browse files Browse the repository at this point in the history
…er_initialize_under_win_env

Ivory 13 18 acu138418 fix logger initialize under win env
  • Loading branch information
szmyd committed Nov 20, 2013
2 parents 34ab563 + 576a53c commit 42cea67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/right_scraper/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class Logger < ::Logger
# Otherwise pass the arguments on to ::Logger.
def initialize(*args)
if args.empty?
super('/dev/null')
is_windows = !!(RUBY_PLATFORM =~ /mswin|win32|dos|mingw|cygwin/)
super((is_windows ? 'nul' : '/dev/null'))
self.level = ::Logger::ERROR
else
super
Expand Down

1 comment on commit 42cea67

@flexera-ci
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RS-COMPLIANCE: COMPLIANCE-COMMITMESSAGE-PASS Build: #53843(2013-11-20_17-13-40), repo: right_scraper, branch/tag: v3, sha: 42cea67, status: PASS, reason: Was a merge commit

Please sign in to comment.