mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-28 14:47:11 -07:00
fix compiling on arch (#6768)
* fix compiling on arch * redo all the logging in affected files
This commit is contained in:
@@ -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]";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user