aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-03 12:21:14 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-03 12:21:14 +0000
commitbcd784de756cbfa81ba831545203cfab8e817d7e (patch)
tree1ab39a56942c19b4d37fd010409c3848b43a7172
parent67c8e1e7c9721b95a1fdc5ff5ea64ea6bd8934c7 (diff)
downloadruby-bcd784de756cbfa81ba831545203cfab8e817d7e.tar.gz
[DOC] Fix default value of shift_age [ci skip]
`LogDevice#initialize` treats shift_age: nil as 7, but Logger#initialize has the default value of shift_age as 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/logger.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 839a063c09..dfed835c77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Oct 3 21:19:46 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/logger.rb: [DOC] Fix default value of shift_age.
+
Mon Oct 3 17:20:05 2016 George Brocklehurst <ruby@georgebrock.com>
* ext/readline/readline.c (readline_s_set_quoting_detection_proc):
diff --git a/lib/logger.rb b/lib/logger.rb
index 8551abc7ac..a81b7cc182 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -340,7 +340,7 @@ class Logger
#
# :call-seq:
- # Logger.new(logdev, shift_age = 7, shift_size = 1048576)
+ # Logger.new(logdev, shift_age = 0, shift_size = 1048576)
# Logger.new(logdev, shift_age = 'weekly')
# Logger.new(logdev, level: :info)
# Logger.new(logdev, progname: 'progname')