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
|
||||
// and replace console.log function to send
|
||||
// logs of the application
|
||||
if (openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debugApp) {
|
||||
if (openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debug_app) {
|
||||
this.instance.replaceWindowConsole();
|
||||
}
|
||||
|
||||
|
@ -154,7 +154,7 @@ export class OpenViduLogger {
|
|||
|
||||
private isOpenViduBrowserLogsDebugActive(openVidu: OpenVidu) {
|
||||
return openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debug ||
|
||||
openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debugApp;
|
||||
openVidu.sendBrowserLogs === OpenViduLoggerConfiguration.debug_app;
|
||||
}
|
||||
|
||||
// Return console functions with jsnlog integration
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export enum OpenViduLoggerConfiguration {
|
||||
disabled = 'disabled',
|
||||
debug = 'debug',
|
||||
debugApp = 'debugApp'
|
||||
debug_app = 'debug_app'
|
||||
}
|
Loading…
Reference in New Issue