refine log messages.