the warning about the logger when using a string was a bad idea

This commit is contained in:
Julien Kirch 2010-05-31 19:52:30 +02:00
parent 3f65111ce5
commit cd8f5b2c79
2 changed files with 1 additions and 3 deletions

View File

@ -4,6 +4,7 @@
- user, password and user-defined headers should survive a redirect
- added all missing status codes
- added parameter passing for get request using the :param key in header
- the warning about the logger when using a string was a bad idea
# 1.5.1

View File

@ -92,9 +92,6 @@ module RestClient
# Value should be a logger but can can be stdout, stderr, or a filename.
# You can also configure logging by the environment variable RESTCLIENT_LOG.
def self.log= log
if log.is_a? String
warn "[warning] You should set the log with a logger"
end
@@log = create_log log
end