fixes #6228 cleanup log records