Add error logging for proxy