mirror of https://gerrit.osmocom.org/osmo-pcap
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:
parent
69ce121c6c
commit
831494ed34
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue