mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: Node.js platform: ConsoleLogger constructor
Doesn't look right that the argument is ignored and instead global state is modified. The code later passes in `window.console` anyway, so this doesn't really change the behavior. However this change is important for Node.js compatibility, where `window` is not defined.pull/672/merge
parent
b5d7371eed
commit
71b0e6ca43
|
@ -33,10 +33,10 @@ export class ConsoleLogger {
|
||||||
|
|
||||||
constructor(console: Console) {
|
constructor(console: Console) {
|
||||||
this.logger = console;
|
this.logger = console;
|
||||||
this.log = window.console.log,
|
this.log = console.log,
|
||||||
this.info = window.console.info,
|
this.info = console.info,
|
||||||
this.debug = window.console.debug,
|
this.debug = console.debug,
|
||||||
this.warn = window.console.warn,
|
this.warn = console.warn,
|
||||||
this.error = window.console.error
|
this.error = console.error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue