fix logfile truncation introduced by previous fix for (bnc#825490)