better debug logging for http requests