2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 10:46:03 +00:00

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:
rudolfkoenig 2016-02-27 18:12:33 +00:00
parent 5edffd325f
commit df854ba0db

View File

@ -338,6 +338,8 @@ autocreate_Notify($$)
}
close(IN); close(OUT);
unlink($oldfile);
my $fh = new IO::File ">>$hash->{currentlogfile}";
$hash->{FH} = $fh;
} else {
Log 1, "$oldfile or $hash->{currentfile}: $!";
close(IN);