Adds RestConnector logging and fixes NPE.