v0.0.5 rotate: close-bedingung fixed

master
Denis Knauf 2012-09-17 13:46:57 +02:00
parent a7745f28a1
commit c44010dd64
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
0.0.4
0.0.5

View File

@ -9,7 +9,7 @@ class Semlogger::Rotate
def open_if
name = Time.now.strftime( @filename).gsub /%\$/, $$.to_s
@file.close if @file and name != @file.path
close if @file and name != @file.path
@file = File.open name, 'a' unless @file
@file
end