mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 03:44:52 +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:
parent
3d59dd8c3a
commit
f561df40ba
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user