Reduce logging verbosity for flipper socket provider switches

Summary: Change that removes log verbosity around socket provider switching.

Reviewed By: jknoxville

Differential Revision: D31395115

fbshipit-source-id: aece2facdf16c517522488c21496ea6a0eb50936
This commit is contained in:
Lorenzo Blasa
2021-10-05 10:55:40 -07:00
committed by Facebook GitHub Bot
parent 026f8fc308
commit bce2cdc316

View File

@@ -481,15 +481,12 @@ void FlipperConnectionManagerImpl::reevaluateSocketProvider() {
if (failedSocketConnectionAttempts < maxFailedSocketConnectionAttempts) {
++failedSocketConnectionAttempts;
} else {
log("Failed to connect with the current socket provider");
failedSocketConnectionAttempts = 0;
useLegacySocketProvider = !useLegacySocketProvider;
if (useLegacySocketProvider) {
log("Use legacy socket provider");
FlipperSocketProvider::shelveDefault();
} else {
log("Use websocket provider");
FlipperSocketProvider::unshelveDefault();
}
}