Changes to logging and updates to http client code