Downgrade log severity for log listener start failures

Reviewed By: mweststrate

Differential Revision: D44333037

fbshipit-source-id: 87f5bec31cb7bf38306f0d48c891ad84d8c0121f
This commit is contained in:
Andrey Goncharov
2023-03-23 05:27:52 -07:00
committed by Facebook GitHub Bot
parent ccbc4770f5
commit 7609a4cb38

View File

@@ -106,14 +106,14 @@ export abstract class DeviceListener {
} catch (e) { } catch (e) {
if (this.restartCnt <= 0) { if (this.restartCnt <= 0) {
this._state.set('fatal', e); this._state.set('fatal', e);
console.error( console.warn(
`${this.name}.start -> failure after ${RESTART_CNT} retries`, `${this.name}.start -> failure after ${RESTART_CNT} retries`,
e, e,
); );
return; return;
} }
console.warn( console.debug(
`${this.name}.start -> error. Retrying. ${this.restartCnt} retries left.`, `${this.name}.start -> error. Retrying. ${this.restartCnt} retries left.`,
e, e,
); );