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:
rudolfkoenig
2012-07-23 13:16:02 +00:00
parent ec1cabe921
commit 2bd3af10a9

View File

@@ -844,9 +844,9 @@ OpenLogfile($)
} else {
$defs{global}{logfile} = $attr{global}{logfile};
HandleArchiving($defs{global}) if($defs{global}{currentlogfile});
$defs{global}{currentlogfile} = $param;
HandleArchiving($defs{global});
$defs{global}{logfile} = $attr{global}{logfile};
open(LOG, ">>$currlogfile") || return("Can't open $currlogfile: $!");
redirectStdinStdErr() if($init_done);