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