When firebug is closed, the window.console.log contains kind of dummy. And when you call it via Log4js.logger.apply(window.console, arguments); you got an error.
I have made a simple test:
The html page has
X = window.console;
I open Firefox browser with Firebug console closed, open this page, open Firebug and tried to execute X.log.apply(window.console, ['a']);, I got an error same as above.
Second case: I open Firefox with Firebug OPENED, open test page and then tried to execute X.log.apply(window.console, ['a']);, and it works as expected
Threre is an issue with Log4js in pushstream.js. It appears in Firefox (30) with Firebug extension.
The LOG_LEVEL set to 'debug':
PushStream.LOG_LEVEL = 'debug';
I guess the reason is in saving window.console.log variable https://github.com/wandenberg/nginx-push-stream-module/blob/master/misc/js/pushstream.js#L160
When firebug is closed, the
window.console.log
contains kind of dummy. And when you call it viaLog4js.logger.apply(window.console, arguments);
you got an error.I have made a simple test: The html page has
I open Firefox browser with Firebug console closed, open this page, open Firebug and tried to execute
X.log.apply(window.console, ['a']);
, I got an error same as above. Second case: I open Firefox with Firebug OPENED, open test page and then tried to executeX.log.apply(window.console, ['a']);
, and it works as expected