add better logging if publishing failsˆ