Cleanup log messages