diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-21 07:11:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-21 07:11:03 +0000 |
commit | 82d495134c4961d3d6099d1186da978f03bac988 (patch) | |
tree | bd5afaa64ed39a0abec3dc9490d242d71dd68b23 /ChangeLog | |
parent | e00bcd1df330bc70af8fa3259be074e861873476 (diff) | |
download | ruby-82d495134c4961d3d6099d1186da978f03bac988.tar.gz |
logger.rb: fix midnight log rotation miss
* lib/logger.rb (Logger::LogDevice#check_shift_log): compare the
current time with the time for the next rotation to fix rotation
miss when date changed between the comparison and log writing.
based on the patch by megayu <yuhg2310 AT gmail.com>.
[Fixes GH-539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,11 @@ +Fri Feb 21 16:11:02 2014 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/logger.rb (Logger::LogDevice#check_shift_log): compare the + current time with the time for the next rotation to fix rotation + miss when date changed between the comparison and log writing. + based on the patch by megayu <yuhg2310 AT gmail.com>. + [Fixes GH-539] + Fri Feb 21 10:39:33 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> * test/monitor/test_monitor.rb: remove unused variables. |