Improve message publishing with some log messages