Bläddra i källkod

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.
master
Saúl Ibarra Corretgé 6 år sedan
förälder
incheckning
b2e840636a
1 ändrade filer med 1 tillägg och 4 borttagningar
  1. 1
    4
      react/features/base/sounds/reducer.js

+ 1
- 4
react/features/base/sounds/reducer.js Visa fil

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

Laddar…
Avbryt
Spara