From 53281c2d42a36d920ce09e029d2da445119375fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 10 Jul 2020 16:07:53 +0200 Subject: [PATCH] analytics: avoid error log when there are no handlers --- react/features/analytics/functions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/react/features/analytics/functions.js b/react/features/analytics/functions.js index 65f9bfc18..ede59c555 100644 --- a/react/features/analytics/functions.js +++ b/react/features/analytics/functions.js @@ -117,7 +117,9 @@ export function createHandlers({ getState }: { getState: Function }) { }) .catch(e => { analytics.dispose(); - logger.error(e); + if (handlers.length !== 0) { + logger.error(e); + } return []; }));