From b2e840636a6abaef5cd23d972b93af6dca4adbd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 21 Jun 2019 16:22:57 +0200 Subject: [PATCH] sounds: lower log severity When native SDK users end a meeting the view gets disposed and detached from React, and then the entire app gets destroyed and these errors get printed at the error level, throwing some people off. --- react/features/base/sounds/reducer.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/react/features/base/sounds/reducer.js b/react/features/base/sounds/reducer.js index 7e0fe5caf..a5e7ac5fc 100644 --- a/react/features/base/sounds/reducer.js +++ b/react/features/base/sounds/reducer.js @@ -96,10 +96,7 @@ function _addOrRemoveAudioElement(state, action) { })); } } else { - const actionName - = isAddAction ? '_ADD_AUDIO_ELEMENT' : '_REMOVE_AUDIO_ELEMENT'; - - logger.error(`${actionName}: no sound for id: ${soundId}`); + logger.warn(`${action.type}: no sound for id: ${soundId}`); } return nextState;