don't try truncating logfiles if logging is turned off.