add error logging to hub publish