From 38301490fa5d4ff96408e699e078a93797a3e157 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Mon, 28 Sep 2026 11:39:21 -0300 Subject: [PATCH] fix(xcat-dep): print the lock log line without changing autoflush _log set $| on the caller's selected handle for each line. The caller owns its buffering, so the lock log only prints the line. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- lib/XCAT/NFSLock.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/XCAT/NFSLock.pm b/lib/XCAT/NFSLock.pm index 64c8df0..ed2eff2 100644 --- a/lib/XCAT/NFSLock.pm +++ b/lib/XCAT/NFSLock.pm @@ -407,8 +407,6 @@ sub _log { my $host = (split(/\./, hostname() || 'unknown'))[0]; my $line = join(' ', '[nfslock]', $time, $host, "pid=$$", $event, $self->{label}, $self->{path}, defined($detail) ? $detail : ()); - # Flushed at once, so the line lands in the build log in the order the event happened. - local $| = 1; print "$line\n"; }