diff --git a/fhem/FHEM/92_FileLog.pm b/fhem/FHEM/92_FileLog.pm index 6b72f9ad4..66b1a9a14 100644 --- a/fhem/FHEM/92_FileLog.pm +++ b/fhem/FHEM/92_FileLog.pm @@ -243,6 +243,7 @@ FileLog_Switch($) $log->{currentlogfile} = $cn; return 1 if($log->{READONLY}); $fh->close() if($fh); + restoreDir_mkDir($cn=~m,^/,? "":".", $cn, 1); HandleArchiving($log); $fh = new IO::File ">>$cn"; if(!defined($fh)) {