mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-09-30 14:55:17 +00:00
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>
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user