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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1757 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-07-23 13:16:02 +00:00
parent 1262507ef1
commit 350e1f26b5

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