polish the log messages