Convert all connectivity logs from "log" to "info"

Summary: In a diff down the stack I introduced sending of info/warn/error logs to Scuba. Here I'm just changing level of all connectivity-related logging to "info" as they often required for investigations.

Reviewed By: mweststrate

Differential Revision: D31532770

fbshipit-source-id: 956d6712918291579b3beb12cb91ab69ce1e3859
This commit is contained in:
Anton Nikolaev
2021-10-12 07:18:08 -07:00
committed by Facebook GitHub Bot
parent 64ce2e6f69
commit 1fae3a24c9
6 changed files with 41 additions and 24 deletions

View File

@@ -152,11 +152,12 @@ export class IOSDeviceManager {
.map((device) => device.serial),
);
for (const {udid, type, name} of activeDevices) {
for (const activeDevice of activeDevices) {
const {udid, type, name} = activeDevice;
if (currentDeviceIDs.has(udid)) {
currentDeviceIDs.delete(udid);
} else {
console.log(`[conn] detected new iOS device ${udid}`);
console.info(`[conn] detected new iOS device ${udid}`, activeDevice);
const iOSDevice = new IOSDevice(
this.flipperServer,
this.iosBridge,
@@ -169,7 +170,7 @@ export class IOSDeviceManager {
}
currentDeviceIDs.forEach((id) => {
console.log(`[conn] Could no longer find ${id}, removing...`);
console.info(`[conn] Could no longer find ${id}, removing...`);
this.flipperServer.unregisterDevice(id);
});
}