fix compiling on arch (#6768)

* fix compiling on arch

* redo all the logging in affected files
This commit is contained in:
ebbit1q
2026-04-05 21:52:46 +02:00
committed by GitHub
parent a46ab5cd68
commit 3ec9ae9772
7 changed files with 219 additions and 148 deletions
@@ -101,6 +101,10 @@ QString getSafeDebugString(const ::google::protobuf::Message &message)
#endif // GOOGLE_PROTOBUF_VERSION > 3004000
std::string debug_string;
printer.PrintToString(message, &debug_string);
return QString::number(size) + " bytes " + QString::fromStdString(debug_string);
bool ok = printer.PrintToString(message, &debug_string);
if (ok) {
return QString::number(size) + " bytes " + QString::fromStdString(debug_string);
} else {
return "[could not convert message to string]";
}
}