One more safety measure for IEs weird way of providing a JS console

This commit is contained in:
Thomas Gelf 2014-03-17 17:06:31 +01:00
parent 4466053679
commit 2febbdd7d5
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@
// We want our log messages to carry precise timestamps
args.unshift(this.icinga.utils.timeWithMs());
if (this.hasConsole() && this.hasLogLevel(level)) {
if (this.hasConsole() && this.hasLogLevel(level) && typeof console[level].apply === 'function') {
console[level].apply(console, args);
}
return this;