From 765cd2ebb985547c2d3441fd73728cc43cc364ca Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Sun, 11 Apr 2021 01:48:58 +0200 Subject: [PATCH] sip: pipeline: Only inform of unhandled bus massages when debugging These messages are mainly useful for development. This part will be rewritten once we introduce structured logging. For the moment this will just add noise. --- plugins/sip/calls-sip-media-pipeline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/sip/calls-sip-media-pipeline.c b/plugins/sip/calls-sip-media-pipeline.c index 9701f50..0d2d3ab 100644 --- a/plugins/sip/calls-sip-media-pipeline.c +++ b/plugins/sip/calls-sip-media-pipeline.c @@ -159,7 +159,8 @@ bus_cb (GstBus *bus, } default: - g_debug ("Got unhandled %s message", GST_MESSAGE_TYPE_NAME (message)); + if (pipeline->debug) + g_debug ("Got unhandled %s message", GST_MESSAGE_TYPE_NAME (message)); break; }