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.
This commit is contained in:
Saúl Ibarra Corretgé 2019-06-21 16:22:57 +02:00 committed by Saúl Ibarra Corretgé
parent ddaa22048f
commit b2e840636a
1 changed files with 1 additions and 4 deletions

View File

@ -96,10 +96,7 @@ function _addOrRemoveAudioElement(state, action) {
})); }));
} }
} else { } else {
const actionName logger.warn(`${action.type}: no sound for id: ${soundId}`);
= isAddAction ? '_ADD_AUDIO_ELEMENT' : '_REMOVE_AUDIO_ELEMENT';
logger.error(`${actionName}: no sound for id: ${soundId}`);
} }
return nextState; return nextState;