change MAX_LOG_LENGTH