1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/logger.rb: Remove block from Logger.add as it's not needed

patch provided by Daniel Lobato Garcí [fix GH-1240] [Bug #12054]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
sonots 2016-02-09 07:41:51 +00:00
parent ade0d8e26e
commit 460e9d8d83
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 9 16:36:23 2016 Naotoshi Seo <sonots@gmail.com>
* lib/logger.rb: Remove block from Logger.add as it's not needed
patch provided by Daniel Lobato Garcí [fix GH-1240] [Bug #12054]
Tue Feb 9 14:32:23 2016 Zachary Scott <zzak@ruby-lang.org>
* ext/zlib/zlib.c: Document mtime header behavior with patch by @schneems

View file

@ -416,7 +416,7 @@ class Logger
# * Append open does not need to lock file.
# * If the OS supports multi I/O, records possibly may be mixed.
#
def add(severity, message = nil, progname = nil, &block)
def add(severity, message = nil, progname = nil)
severity ||= UNKNOWN
if @logdev.nil? or severity < @level
return true