Limitting log size according to param LOG_MAX_RESP_SIZE