summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-29 05:57:39 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-29 05:57:39 +0000
commit14de088dcba605dec358a59428411a301dd406ae (patch)
treef64e28ed21ffd172c70bf65d8d3abe3288f44500 /lib
parent14e5aab8b52e3f36a0a7c004c86d57588c7fdc1a (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/logger.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/logger.rb b/lib/logger.rb
index 2246673b09..5a310bacb5 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -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