From e93bc6b5c8321efbe3d1edf269d2a033f00d12c3 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 28 May 2025 20:40:27 +0200 Subject: [PATCH] [SBI] Log error code description upon query failure Sometimes (eg res=16) the conn->error buffer is left empty by curl, so also logging the name of the error code provides some extra useful information. --- lib/sbi/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbi/client.c b/lib/sbi/client.c index 89569d081..df9a1518e 100644 --- a/lib/sbi/client.c +++ b/lib/sbi/client.c @@ -754,7 +754,7 @@ static void check_multi_info(ogs_sbi_client_t *client) } } else - ogs_warn("[%d] %s", res, conn->error); + ogs_warn("%s (%d): %s", curl_easy_strerror(res), res, conn->error); ogs_assert(conn->client_cb); if (res == CURLE_OK)