Trims log message in worker