Only log request if debug is enabled.