v0.0.5 rotate: close-bedingung fixed

This commit is contained in:
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 def open_if
name = Time.now.strftime( @filename).gsub /%\$/, $$.to_s 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 = File.open name, 'a' unless @file
@file @file
end end