uac: print new and old uri in log message in case of error

(cherry picked from commit 6feeb886b58f4cd1cefeef132245c009bf8ca07f)