v0.0.5 rotate: close-bedingung fixed
This commit is contained in:
parent
a7745f28a1
commit
c44010dd64
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue