Clean up log messages