Log debug the URL called before doing the call rather than after