diff options
author | Brian Cully <bjc@kublai.com> | 2017-11-13 19:22:43 +0000 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2017-11-13 19:22:43 +0000 |
commit | 4cbddae11f4d900d820694783ccc29ba88c8af32 (patch) | |
tree | b8f34d74c54f513c1763a98f1658d5df2b0cd372 /xmpt | |
parent | b08eb5216d86cbe384b9f5e3c476dcb41d771e85 (diff) | |
download | xmpt-4cbddae11f4d900d820694783ccc29ba88c8af32.tar.gz xmpt-4cbddae11f4d900d820694783ccc29ba88c8af32.zip |
Print process id in verbose output.
Diffstat (limited to 'xmpt')
-rwxr-xr-x | xmpt | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -170,7 +170,7 @@ sub eval_in { eval { require $_ for @libs; foreach my $plan (@plans) { - print STDERR "=> Executing $plan->{name} step.\n" if $verbose; + print STDERR "[$$] => Executing $plan->{name} step.\n" if $verbose; do_send($plan->{name}, @{$plan->{send}}); do_recv($plan->{name}, @{$plan->{expect}}) if $plan->{expect}; } @@ -184,7 +184,7 @@ sub do_send { if ($verbose) { my $l = $s; chomp $l; - print STDERR "SEND: $l\n" unless $l =~ /^\s*$/; + print STDERR "[$$] SEND: $l\n" unless $l =~ /^\s*$/; } # TODO: make write SIGPIPE configurable, but for now just ignore it. @@ -240,7 +240,7 @@ sub do_recv { if ($verbose) { my $l = $r; chomp $l; - print STDERR "RECV: $l\n" + print STDERR "[$$] RECV: $l\n" } $readbuf .= $r; } |