fix nasty bug causing log size grow up to 200 Gb until the server crashes due to zero disk space