use osmo_wqueue_enqueue_quiet() as we log anyway

There's no need in both libosmocore and osmo-pcap-client logging
the same queue overflow twice.

Change-Id: I43881f2bd0b0870a51f9ca5dad2d8cba40d1e54b
This commit is contained in:
Harald Welte 2021-04-23 13:24:37 +02:00
parent 69ce121c6c
commit 831494ed34
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ static void lost_connection(struct osmo_pcap_client_conn *conn)
static void write_data(struct osmo_pcap_client_conn *conn, struct msgb *msg)
{
if (osmo_wqueue_enqueue(&conn->wqueue, msg) != 0) {
if (osmo_wqueue_enqueue_quiet(&conn->wqueue, msg) != 0) {
LOGP(DCLIENT, LOGL_ERROR, "Failed to enqueue conn=%s\n", conn->name);
rate_ctr_inc(&conn->client->ctrg->ctr[CLIENT_CTR_QERR]);
msgb_free(msg);