From: Timo Tijhof Date: Tue, 24 Sep 2019 16:46:53 +0000 (+0100) Subject: build: Lower default Karma logLevel during local development X-Git-Tag: 1.34.0-rc.0~64^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=519739b4a849495ccd817ca2bb0ebdfc9cc0f082;p=lhc%2Fweb%2Fwiklou.git build: Lower default Karma logLevel during local development Follows-up fa63a70ae90 which enabled this for CI to investigate a Jenkins-specific issue, but it makes for a very noisy and visually unpleasant local experience because these Karma lines interweave with the structural output from the qunit/karma reporter. With this change applied, the local experience from 'npm run qunit' has clean output again like so: ``` … mediawiki.storage ✔ set/get(Object) with storage support ✔ set/get(Object) with storage methods disabled ✔ set/get(Object) with storage object disabled mediawiki.template ✔ add ✔ compile ✔ get Finished in 13 secs SUMMARY: ✔ 440 tests completed ``` Change-Id: I21555468ed30ca3a2220eba1d8a78cc140a13399 --- diff --git a/Gruntfile.js b/Gruntfile.js index 8115ea2aec..9615330e8c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -117,7 +117,7 @@ module.exports = function ( grunt ) { included: true, served: false } ], - logLevel: 'DEBUG', + logLevel: ( process.env.ZUUL_PROJECT ? 'DEBUG' : 'INFO' ), frameworks: [ 'qunit' ], reporters: [ 'mocha' ], singleRun: true,