log message cleanup