Fix logging in fetchUrl and support silent logs
Be silent during testing