diff --git a/fhem/FHEM/98_autocreate.pm b/fhem/FHEM/98_autocreate.pm index 1996a86c8..dd287634d 100644 --- a/fhem/FHEM/98_autocreate.pm +++ b/fhem/FHEM/98_autocreate.pm @@ -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);