diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/logger.rb | 1 | ||||
-rw-r--r-- | lib/logger/log_device.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/logger.rb b/lib/logger.rb index 4205380a6a..7d55f62f30 100644 --- a/lib/logger.rb +++ b/lib/logger.rb @@ -11,6 +11,7 @@ # A simple system for logging messages. See Logger for more documentation. require 'monitor' +require 'rbconfig' require_relative 'logger/version' require_relative 'logger/formatter' diff --git a/lib/logger/log_device.rb b/lib/logger/log_device.rb index 96d77b7b6a..8683328a5e 100644 --- a/lib/logger/log_device.rb +++ b/lib/logger/log_device.rb @@ -135,7 +135,7 @@ class Logger end end - if /mswin|mingw|cygwin/ =~ RUBY_PLATFORM + if /mswin|mingw|cygwin/ =~ RbConfig::CONFIG['host_os'] def lock_shift_log yield end |