Trying to get rid of debug logs in karma. Tried to do it with the conf, didn't seem to work, did a hack instead.

This commit is contained in:
Scott Erickson 2014-08-15 12:28:32 -07:00
parent 9697af6b05
commit 69ab177702
2 changed files with 2 additions and 1 deletions

View file

@ -2,5 +2,6 @@
// Hooks into the test view logic for running tests. // Hooks into the test view logic for running tests.
require('initialize'); require('initialize');
console.debug = function() {}; // Karma conf doesn't seem to work? Debug messages are still emitted when they shouldn't be.
TestView = require('views/TestView'); TestView = require('views/TestView');
TestView.runTests(); TestView.runTests();

View file

@ -43,7 +43,7 @@ module.exports = function(config) {
// level of logging // level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel : config.LOG_INFO, logLevel : config.LOG_ERROR, // doesn't seem to work?
// enable / disable watching file and executing tests whenever any file changes // enable / disable watching file and executing tests whenever any file changes
autoWatch : true, autoWatch : true,