From df854ba0dbe8456797820c8141f4c1b722224655 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 27 Feb 2016 18:12:33 +0000 Subject: [PATCH] 98_autocreate.pm: fix FileLog after rename (Forum #49949) git-svn-id: https://svn.fhem.de/fhem/trunk@10944 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_autocreate.pm | 2 ++ 1 file changed, 2 insertions(+) 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);