clean up log messages