mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: extend error logs to avoid empty objects
parent
35238a3390
commit
1e4472f89d
|
@ -496,7 +496,7 @@ export class Publisher extends StreamManager {
|
||||||
};
|
};
|
||||||
|
|
||||||
const getMediaError = error => {
|
const getMediaError = error => {
|
||||||
logger.error(error);
|
logger.error(`getMediaError: ${JSON.stringify(error)}`);
|
||||||
this.clearPermissionDialogTimer(startTime, timeForDialogEvent);
|
this.clearPermissionDialogTimer(startTime, timeForDialogEvent);
|
||||||
if (error.name === 'Error') {
|
if (error.name === 'Error') {
|
||||||
// Safari OverConstrainedError has as name property 'Error' instead of 'OverConstrainedError'
|
// Safari OverConstrainedError has as name property 'Error' instead of 'OverConstrainedError'
|
||||||
|
|
|
@ -1171,7 +1171,7 @@ export class Session extends EventDispatcher {
|
||||||
if (!this.connection.disposed && !forced) {
|
if (!this.connection.disposed && !forced) {
|
||||||
this.openvidu.sendRequest('leaveRoom', (error, response) => {
|
this.openvidu.sendRequest('leaveRoom', (error, response) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
logger.error(error);
|
logger.error(`leaveRoom error: ${JSON.stringify(error)}`);
|
||||||
}
|
}
|
||||||
this.openvidu.closeWs();
|
this.openvidu.closeWs();
|
||||||
});
|
});
|
||||||
|
|
|
@ -304,7 +304,7 @@ export class WebRtcStats {
|
||||||
await fetch(url, configuration);
|
await fetch(url, configuration);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(error);
|
logger.error(`sendStats error: ${JSON.stringify(error)}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue