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:
committed by
Facebook GitHub Bot
parent
026f8fc308
commit
bce2cdc316
@@ -481,15 +481,12 @@ void FlipperConnectionManagerImpl::reevaluateSocketProvider() {
|
|||||||
if (failedSocketConnectionAttempts < maxFailedSocketConnectionAttempts) {
|
if (failedSocketConnectionAttempts < maxFailedSocketConnectionAttempts) {
|
||||||
++failedSocketConnectionAttempts;
|
++failedSocketConnectionAttempts;
|
||||||
} else {
|
} else {
|
||||||
log("Failed to connect with the current socket provider");
|
|
||||||
failedSocketConnectionAttempts = 0;
|
failedSocketConnectionAttempts = 0;
|
||||||
useLegacySocketProvider = !useLegacySocketProvider;
|
useLegacySocketProvider = !useLegacySocketProvider;
|
||||||
|
|
||||||
if (useLegacySocketProvider) {
|
if (useLegacySocketProvider) {
|
||||||
log("Use legacy socket provider");
|
|
||||||
FlipperSocketProvider::shelveDefault();
|
FlipperSocketProvider::shelveDefault();
|
||||||
} else {
|
} else {
|
||||||
log("Use websocket provider");
|
|
||||||
FlipperSocketProvider::unshelveDefault();
|
FlipperSocketProvider::unshelveDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user