Don't log cert exchange connection failures
Summary: This info is still available in the diagnostic screen. Reviewed By: passy Differential Revision: D14164791 fbshipit-source-id: 1fc91da0b7437d530bddee6cbb5ea8c2d11f7b80
This commit is contained in:
committed by
Facebook Github Bot
parent
8ff625397b
commit
5fff501d26
@@ -301,23 +301,25 @@ void FlipperConnectionManagerImpl::requestSignedCertFromFlipper() {
|
|||||||
// TODO: Connect immediately, without waiting for reconnect
|
// TODO: Connect immediately, without waiting for reconnect
|
||||||
client_ = nullptr;
|
client_ = nullptr;
|
||||||
},
|
},
|
||||||
[this, message](folly::exception_wrapper e) {
|
[this, message, gettingCert](folly::exception_wrapper e) {
|
||||||
e.handle(
|
e.handle(
|
||||||
[&](rsocket::ErrorWithPayload& errorWithPayload) {
|
[&](rsocket::ErrorWithPayload& errorWithPayload) {
|
||||||
std::string errorMessage =
|
std::string errorMessage =
|
||||||
errorWithPayload.payload.moveDataToString();
|
errorWithPayload.payload.moveDataToString();
|
||||||
|
|
||||||
if (errorMessage.compare("not implemented")) {
|
if (errorMessage.compare("not implemented")) {
|
||||||
log("Desktop failed to provide certificates. Error from flipper desktop:\n" +
|
auto error =
|
||||||
errorMessage);
|
"Desktop failed to provide certificates. Error from flipper desktop:\n" +
|
||||||
|
errorMessage;
|
||||||
|
log(error);
|
||||||
|
gettingCert->fail(error);
|
||||||
client_ = nullptr;
|
client_ = nullptr;
|
||||||
} else {
|
} else {
|
||||||
sendLegacyCertificateRequest(message);
|
sendLegacyCertificateRequest(message);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[e](...) {
|
[e, gettingCert](...) {
|
||||||
log(("Error during certificate exchange:" + e.what())
|
gettingCert->fail(e.what().c_str());
|
||||||
.c_str());
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user