the warning about the logger when using a string was a bad idea
This commit is contained in:
parent
3f65111ce5
commit
cd8f5b2c79
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue