Log only the sEndpoint rather than the whole hash. Also, fixed an issue on the promise-based call.