mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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
91f62ace5f
commit
7aa89259be
@ -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…
Reference in New Issue
Block a user