소스 검색

Log warning instead of error for audio output device change errors

master
tsareg 9 년 전
부모
커밋
c1a93afeaf
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    1
      conference.js
  2. 3
    2
      modules/settings/Settings.js

+ 3
- 1
conference.js 파일 보기

@@ -1379,7 +1379,9 @@ export default {
1379 1379
                 APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
1380 1380
                     .then(() => console.log('changed audio output device'))
1381 1381
                     .catch((err) => {
1382
-                        console.error('failed to set audio output device', err);
1382
+                        console.warn('Failed to change audio output device. ' +
1383
+                            'Default or previously set audio output device ' +
1384
+                            'will be used instead.', err);
1383 1385
                     });
1384 1386
             }
1385 1387
         );

+ 3
- 2
modules/settings/Settings.js 파일 보기

@@ -52,8 +52,9 @@ if (supportsLocalStorage()) {
52 52
         JitsiMeetJS.mediaDevices.getAudioOutputDevice()) {
53 53
         JitsiMeetJS.mediaDevices.setAudioOutputDevice(audioOutputDeviceId)
54 54
             .catch((ex) => {
55
-                console.error('failed to set audio output device from local ' +
56
-                    'storage', ex);
55
+                console.warn('Failed to set audio output device from local ' +
56
+                    'storage. Default audio output device will be used' +
57
+                    'instead.', ex);
57 58
             });
58 59
     }
59 60
 } else {

Loading…
취소
저장