2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

FileLog.pm: enable wildcards in the directory part of the file (Forum #139985)

git-svn-id: https://svn.fhem.de/fhem/trunk@29400 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2024-12-05 10:29:06 +00:00
parent 91f62ace5f
commit 7aa89259be

View File

@ -243,6 +243,7 @@ FileLog_Switch($)
$log->{currentlogfile} = $cn; $log->{currentlogfile} = $cn;
return 1 if($log->{READONLY}); return 1 if($log->{READONLY});
$fh->close() if($fh); $fh->close() if($fh);
restoreDir_mkDir($cn=~m,^/,? "":".", $cn, 1);
HandleArchiving($log); HandleArchiving($log);
$fh = new IO::File ">>$cn"; $fh = new IO::File ">>$cn";
if(!defined($fh)) { if(!defined($fh)) {