mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: Better naming for openvidu browser logs 'debug_app' option
parent
ea56c09199
commit
322ac2e843
|
@ -40,7 +40,7 @@ export class OpenViduLogger {
|
||||||
// Check if app logs can be sent
|
// Check if app logs can be sent
|
||||||
// and replace console.log function to send
|
// and replace console.log function to send
|
||||||
// logs of the application
|
// logs of the application
|
||||||
if (openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debugApp) {
|
if (openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debug_app) {
|
||||||
this.instance.replaceWindowConsole();
|
this.instance.replaceWindowConsole();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ export class OpenViduLogger {
|
||||||
|
|
||||||
private isOpenViduBrowserLogsDebugActive(openVidu: OpenVidu) {
|
private isOpenViduBrowserLogsDebugActive(openVidu: OpenVidu) {
|
||||||
return openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debug ||
|
return openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debug ||
|
||||||
openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debugApp;
|
openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debug_app;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return console functions with jsnlog integration
|
// Return console functions with jsnlog integration
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
export enum OpenViduLoggerConfiguration {
|
export enum OpenViduLoggerConfiguration {
|
||||||
disabled = 'disabled',
|
disabled = 'disabled',
|
||||||
debug = 'debug',
|
debug = 'debug',
|
||||||
debugApp = 'debugApp'
|
debug_app = 'debug_app'
|
||||||
}
|
}
|
Loading…
Reference in New Issue