Cleaning up log messages.