...G...... [ZBX-7098] changes after code review (part1) (refactor log[] handling to keep pattern 'if (FAIL(operation)) goto out;')