mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 16:56:04 +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:
parent
5edffd325f
commit
df854ba0db
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user