hooklistener: print errors as warning and not just as debug messages

This commit is contained in:
Johannes Schauer Marin Rodrigues 2023-10-23 11:50:09 +02:00
parent ce12fbdd41
commit d02ea1c7f1
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -4030,7 +4030,7 @@ sub hooklistener {
}
};
if ($@) {
debug("hooklistener errored out: $@");
warning("hooklistener errored out: $@");
# inform the other side that something went wrong
print STDOUT (pack("n", 0) . "error")
or error "cannot write to socket: $!";