From 5b84dd2b9664e2dfcce4b442ea17f2c99651e9fc Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 23 Jul 2012 13:16:02 +0000 Subject: [PATCH] Fix from Revision 1579 revisited (fhem log archiving was defunct) git-svn-id: https://svn.fhem.de/fhem/trunk@1757 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 6d54bfe71..e45d69602 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -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);