msc: Add debug messages when not sending a USSD welcome message
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_filter.c b/openbsc/src/osmo-bsc/osmo_bsc_filter.c
index f034494..3b657b3 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_filter.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_filter.c
@@ -230,8 +230,15 @@
 	struct osmo_bsc_sccp_con *bsc_con;
 
 	bsc_con = conn->sccp_con;
-	if (!bsc_con || !bsc_con->msc->ussd_welcome_txt)
+	if (!bsc_con) {
+		LOGP(DMSC, LOGL_DEBUG, "No SCCP connection associated.\n");
 		return;
+	}
+
+	if (!bsc_con->msc->ussd_welcome_txt) {
+		LOGP(DMSC, LOGL_DEBUG, "No USSD Welcome text defined.\n");
+		return;
+	}
 
 	gsm0480_send_ussdNotify(conn, 1, bsc_con->msc->ussd_welcome_txt);
 	gsm0480_send_releaseComplete(conn);