lib/winrm.rb in winrm-2.2.3 vs lib/winrm.rb in winrm-2.3.0
- old
+ new
@@ -1,7 +1,5 @@
-# encoding: UTF-8
-#
# Copyright 2010 Dan Wanek <dan.wanek@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@@ -28,12 +26,12 @@
begin
Logging.logger.root.level = ENV['WINRM_LOG']
Logging.logger.root.appenders = Logging.appenders.stderr
rescue ArgumentError
# This means that the logging level wasn't valid
- $stderr.puts "Invalid WINRM_LOG level is set: #{ENV['WINRM_LOG']}"
- $stderr.puts ''
- $stderr.puts 'Please use one of the standard log levels: ' \
+ warn "Invalid WINRM_LOG level is set: #{ENV['WINRM_LOG']}"
+ warn ''
+ warn 'Please use one of the standard log levels: ' \
'debug, info, warn, or error'
end
end
end