diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-03 12:21:14 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-03 12:21:14 +0000 |
commit | 81ac73c04d9ebe2d29d890381fe6fbc6725e490d (patch) | |
tree | 1ab39a56942c19b4d37fd010409c3848b43a7172 | |
parent | 787e878863d32d297373d7a4796271923246ae4d (diff) | |
download | ruby-81ac73c04d9ebe2d29d890381fe6fbc6725e490d.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-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/logger.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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') |