Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Utilities/QGCLogging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ static QtMessageHandler defaultHandler = nullptr;

static void msgHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{
// Downgrade Qt TextToSpeech plugin loading errors from critical to debug
// This occurs on systems where TTS backends are not properly installed/configured
// The error is harmless - TTS simply won't work, which AudioOutput handles gracefully
if (type == QtCriticalMsg &&
QString(context.category).startsWith("qt.speech.tts") &&
msg.contains("Error loading text-to-speech plug-in", Qt::CaseInsensitive)) {
type = QtDebugMsg;
}

// Format the message using Qt's pattern
const QString message = qFormatLogMessage(type, context, msg);

Expand Down
Loading