Fix from Revision 1579 revisited (fhem log archiving was defunct)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1757 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-07-23 13:16:02 +00:00
parent d346a6222c
commit a5a4e95c2f

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);