From 9695847a0079bc1422fb94b91ad8261d15aa33f2 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 8 Jun 2021 17:47:11 +0100 Subject: [PATCH] FGCom: log more IAX messages at SG_INFO --- src/Network/fgcom.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index 55c9fd8b4..22b66b8ba 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -88,6 +88,13 @@ void FGCom::iaxTextEvent(struct iaxc_ev_text text) { _text_node->setStringValue(text.message); } + + auto level = SG_INFO; + if ((text.type == IAXC_TEXT_TYPE_ERROR) || (text.type == IAXC_TEXT_TYPE_FATALERROR)) { + level = SG_ALERT; + } + + SG_LOG(SG_SOUND, level, std::string{"FCCom IAX:"} + text.message); }