FGCom: log more IAX messages at SG_INFO
This commit is contained in:
parent
8618e55774
commit
9695847a00
1 changed files with 7 additions and 0 deletions
|
@ -88,6 +88,13 @@ void FGCom::iaxTextEvent(struct iaxc_ev_text text)
|
||||||
{
|
{
|
||||||
_text_node->setStringValue(text.message);
|
_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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue