98_autocreate.pm: fix FileLog after rename (Forum #49949)
git-svn-id: https://svn.fhem.de/fhem/trunk@10944 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -338,6 +338,8 @@ autocreate_Notify($$)
|
|||||||
}
|
}
|
||||||
close(IN); close(OUT);
|
close(IN); close(OUT);
|
||||||
unlink($oldfile);
|
unlink($oldfile);
|
||||||
|
my $fh = new IO::File ">>$hash->{currentlogfile}";
|
||||||
|
$hash->{FH} = $fh;
|
||||||
} else {
|
} else {
|
||||||
Log 1, "$oldfile or $hash->{currentfile}: $!";
|
Log 1, "$oldfile or $hash->{currentfile}: $!";
|
||||||
close(IN);
|
close(IN);
|
||||||
|
|||||||
Reference in New Issue
Block a user