add two more debug messages
This commit is contained in:
parent
400b51ad7b
commit
58925dc493
1 changed files with 2 additions and 0 deletions
|
@ -3075,6 +3075,7 @@ sub hooklistener {
|
|||
($len, $msg) = unpack("nA5", $buf);
|
||||
}
|
||||
if ($msg eq "adios") {
|
||||
debug "received message: adios";
|
||||
# setup finished, so we break out of the loop
|
||||
if ($len != 0) {
|
||||
error "expected no payload but got $len bytes";
|
||||
|
@ -3364,6 +3365,7 @@ sub hooklistener {
|
|||
}
|
||||
};
|
||||
if ($@) {
|
||||
debug("hooklistener errored out: $@");
|
||||
# inform the other side that something went wrong
|
||||
print STDOUT (pack("n", 0) . "error")
|
||||
or error "cannot write to socket: $!";
|
||||
|
|
Loading…
Reference in a new issue