mediawiki.js: Show line number of caller of mw.log.warn and .error
authorFomafix <fomafix@googlemail.com>
Sat, 17 Oct 2015 17:49:31 +0000 (17:49 +0000)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 17 Oct 2015 20:27:21 +0000 (20:27 +0000)
commit15cac393c2512e607173d033a614cd8800322e40
tree2aa833df5bd0d5792f6909c07260b3b6a4d9c3ef
parentaebdfef5fefad48c56a2583f8a2f8e86ee90124e
mediawiki.js: Show line number of caller of mw.log.warn and .error

Currently the JavaScript console shows the line number from mediawiki.js
where the function mw.log.warn is defined.
With this change the JavaScript console shows the file and the line number
where the function mw.log.warn is called.

Inspirited by https://matthewspencer.github.io/console-log/

Change-Id: I2345333fc0158a66ebcb3abf0e94e6e622b3bdc0
resources/src/mediawiki/mediawiki.js