print trace when publishing fails