Remove probably duplicated logs
Summary: These logs only available on debug but we already have these logs coming from the actual used socket, so remove. Reviewed By: aigoncharov Differential Revision: D51307089 fbshipit-source-id: 32e3eada42fa54b429df0bfcdd936d24cebaf0cb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
067693f3c8
commit
af3f11521b
@@ -64,7 +64,6 @@
|
|||||||
(async function () {
|
(async function () {
|
||||||
// Line below needed to make Metro work. Alternatives could be considered.
|
// Line below needed to make Metro work. Alternatives could be considered.
|
||||||
window.global = window;
|
window.global = window;
|
||||||
let connected = false;
|
|
||||||
|
|
||||||
// Listen to changes in the network state, reload when online.
|
// Listen to changes in the network state, reload when online.
|
||||||
// This handles the case when the device is completely offline
|
// This handles the case when the device is completely offline
|
||||||
@@ -129,21 +128,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
|
||||||
|
|
||||||
socket.addEventListener('error', (e) => {
|
|
||||||
if (!connected) {
|
|
||||||
console.warn('Socket failed to connect. Is the server running? Have you provided a valid authentication token?');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
console.warn('Socket failed with error.', e);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.addEventListener('open', () => {
|
|
||||||
connected = true;
|
|
||||||
})
|
|
||||||
|
|
||||||
// load correct theme (n.b. this doesn't handle system value specifically, will assume light in such cases)
|
// load correct theme (n.b. this doesn't handle system value specifically, will assume light in such cases)
|
||||||
try {
|
try {
|
||||||
if (window.flipperConfig.theme === 'dark') {
|
if (window.flipperConfig.theme === 'dark') {
|
||||||
|
|||||||
Reference in New Issue
Block a user