Remove unused values in log text