1
0
Fork 0

FGCom: log more IAX messages at SG_INFO

This commit is contained in:
James Turner 2021-06-08 17:47:11 +01:00
parent 8618e55774
commit 9695847a00

View file

@ -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);
}