X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a130412e611a2a29bf0cc9bbbfdefea0b1d0061f..96647893c5a1e2c675fc2b1bf1d7ca16fe3253b8:/project/static/js/jquery.logging.js diff --git a/project/static/js/jquery.logging.js b/project/static/js/jquery.logging.js index 1afd8bec..9a7fbe02 100644 --- a/project/static/js/jquery.logging.js +++ b/project/static/js/jquery.logging.js @@ -5,23 +5,18 @@ const LOG_LEVEL = LEVEL_DEBUG; - var mozillaLog = function(msg) { - if (window.console) console.log(msg); + var mozillaLog = function() { + if (window.console) console.log.apply(this, arguments); }; - var operaLog = function(msg) { - opera.postError(msg); + var operaLog = function() { + opera.postError.(arguments.join(' ')); }; - var defaultLog = function(msg) { return false; }; + var defaultLog = function() { return false; }; - $.log = function(message, level) { - if (level == null) level = LEVEL_INFO; - if (message == null) message = 'TRACE'; - if (level < LOG_LEVEL) - return false; - - return $.log.browserLog(message); + $.log = function( ) { + return $.log.browserLog.apply(this, arguments); }; if ($.browser.mozilla || $.browser.safari)