r76066 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76065‎ | r76066 | r76067 >
Date:00:17, 5 November 2010
Author:neilk
Status:deferred
Tags:
Comment:
set default logging to be none
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.Log.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.Log.js
@@ -11,7 +11,7 @@
1212 * @param {String} string String to output to console
1313 */
1414 mw.log = function( s, level ) {
15 -
 15+
1616 if ( typeof level === 'undefined' ) {
1717 level = 30;
1818 }
@@ -58,11 +58,11 @@
5959 }
6060 };
6161
62 - mw.log.NONE = 0;
 62+ mw.log.level = mw.log.NONE = 0;
6363 mw.log.FATAL = 10;
6464 mw.log.WARN = 20;
6565 mw.log.INFO = 30;
66 - mw.log.level = mw.log.ALL = 100;
 66+ mw.log.ALL = 100;
6767
6868 mw.log.fatal = function( s ) {
6969 mw.log( s, mw.log.FATAL );

Status & tagging log