Adding debugging logging for batch requests