Add debug logging to http utils