mirror of
https://github.com/open5gs/open5gs.git
synced 2025-10-23 07:41:57 +00:00
[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.
This commit is contained in:
committed by
Sukchan Lee
parent
73976c938b
commit
e93bc6b5c8
@@ -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)
|
||||
|
Reference in New Issue
Block a user