cleaning log messages