cleanup log messages