feat(GODT-2728): remove the sentry report for gRPC event stream interruptions in bridge-gui.

This commit is contained in:
Xavier Michelon
2023-06-27 17:08:09 +02:00
parent bdc6542970
commit 58b45d8458

View File

@ -43,12 +43,9 @@ EventStreamReader::EventStreamReader(QObject *parent)
void EventStreamReader::run() { void EventStreamReader::run() {
try { try {
emit started(); emit started();
// Status code for the call below is ignored. The event stream may have interrupted by system shutdown or OS user sign-out, and we do not
grpc::Status const status = app().grpc().runEventStreamReader(); // want this to generate a sentry report.
if (!status.ok()) { app().grpc().runEventStreamReader();
throw Exception(QString::fromStdString(status.error_message()));
}
emit finished(); emit finished();
} }
catch (Exception const &e) { catch (Exception const &e) {