openvidu-browser: Better naming for openvidu browser logs 'debug_app' option

pull/635/head
cruizba 2021-06-24 14:27:47 +02:00
parent ea56c09199
commit 322ac2e843
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
export enum OpenViduLoggerConfiguration { export enum OpenViduLoggerConfiguration {
disabled = 'disabled', disabled = 'disabled',
debug = 'debug', debug = 'debug',
debugApp = 'debugApp' debug_app = 'debug_app'
} }