[ruby-cvs:52216] nobu:r45071 (trunk): logger.rb: fix midnight log rotation miss

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Feb 21 16:11:03 JST 2014


nobu	2014-02-21 16:11:03 +0900 (Fri, 21 Feb 2014)

  New Revision: 45071

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45071

  Log:
    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]

  Modified files:
    trunk/ChangeLog
    trunk/lib/logger.rb
    trunk/test/logger/test_logdevice.rb


More information about the ruby-cvs mailing list