From 36a206d1d2488f98f8bfa97feb5971d59ffaaf28 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sun, 20 Oct 2024 21:13:46 +0200 Subject: [PATCH] fixup! Lib: CBOR message streams and channels --- lib/cbor-parser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/cbor-parser.c b/lib/cbor-parser.c index 1a30e3f2..d0a9239a 100644 --- a/lib/cbor-parser.c +++ b/lib/cbor-parser.c @@ -332,8 +332,10 @@ static void cbor_stream_err(sock *sk, int err) { struct cbor_stream *stream = sk->data; - log(L_TRACE "CBOR stream %p error: %d (%M) (errno %m)", - sk, err, err, strerror(err)); + if (err) + log(L_INFO "CBOR stream %p error: %d (%M)", sk, err, err); + else + log(L_INFO "CBOR stream %p hangup", sk); stream->cur_rx_channel = NULL;