v0.0.5 rotate: close-bedingung fixed
This commit is contained in:
parent
a7745f28a1
commit
c44010dd64
2 changed files with 2 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.0.4
|
||||
0.0.5
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue