merge revision(s) 53790,53844: [Backport #12054]

* lib/logger.rb: Remove block from Logger.add as it's not needed
	  patch provided by Daniel Lobato Garcテュ [fix GH-1240] [Bug #12054]
	  patch provided by Daniel Lobato Garcia [fix GH-1240] [Bug #12054]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2016-03-29 05:57:39 +00:00
parent 14e5aab8b5
commit 14de088dcb
3 changed files with 7 additions and 2 deletions

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