Centralise logging
Summary: Centralise connectivity logging into a single place. By having all logs go through a single interface, then it becomes trivial to manipulate them as needed. In this change, this is not done. In subsequent diffs, logs will be dispatched via an event and will be visualised in the Connectivity Hub. Reviewed By: passy Differential Revision: D47185054 fbshipit-source-id: fb5eab98895be0c8f61fb9a77d3e66d6a8dbcb27
This commit is contained in:
committed by
Facebook GitHub Bot
parent
49d1a8b0fa
commit
fc38355eee
@@ -58,14 +58,16 @@ export default class IOSDevice
|
||||
this.serial,
|
||||
this.info.deviceType,
|
||||
);
|
||||
// It is OK not to await the start of the log listener. We just spawn it and handle errors internally.
|
||||
// It is OK not to await the start of the log listener.
|
||||
// We just spawn it and handle errors internally.
|
||||
this.logListener
|
||||
.start()
|
||||
.catch((e) =>
|
||||
console.error('IOSDevice.logListener.start -> unexpected error', e),
|
||||
);
|
||||
this.crashWatcher = new iOSCrashWatcher(this);
|
||||
// It is OK not to await the start of the crash watcher. We just spawn it and handle errors internally.
|
||||
// It is OK not to await the start of the crash watcher.
|
||||
// We just spawn it and handle errors internally.
|
||||
this.crashWatcher
|
||||
.start()
|
||||
.catch((e) =>
|
||||
|
||||
Reference in New Issue
Block a user