Fix from Revision 1579 revisited (fhem log archiving was defunct)
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1757 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
4
fhem.pl
4
fhem.pl
@@ -844,9 +844,9 @@ OpenLogfile($)
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$defs{global}{logfile} = $attr{global}{logfile};
|
HandleArchiving($defs{global}) if($defs{global}{currentlogfile});
|
||||||
$defs{global}{currentlogfile} = $param;
|
$defs{global}{currentlogfile} = $param;
|
||||||
HandleArchiving($defs{global});
|
$defs{global}{logfile} = $attr{global}{logfile};
|
||||||
|
|
||||||
open(LOG, ">>$currlogfile") || return("Can't open $currlogfile: $!");
|
open(LOG, ">>$currlogfile") || return("Can't open $currlogfile: $!");
|
||||||
redirectStdinStdErr() if($init_done);
|
redirectStdinStdErr() if($init_done);
|
||||||
|
|||||||
Reference in New Issue
Block a user