mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
92_FileLog.pm: fix close/abort bug
git-svn-id: https://svn.fhem.de/fhem/trunk@10001 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9e843f5bee
commit
ef12a5d545
@ -147,7 +147,7 @@ FileLog_Switch($)
|
||||
my $cn = ResolveDateWildcards($log->{logfile}, @t);
|
||||
|
||||
if($cn ne $log->{currentlogfile}) { # New logfile
|
||||
$fh->close();
|
||||
$fh->close() if($fh);
|
||||
HandleArchiving($log);
|
||||
$fh = new IO::File ">>$cn";
|
||||
if(!defined($fh)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user