From 69ab1777022da3d2b72ccbc2b561fc4996bc17b6 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Fri, 15 Aug 2014 12:28:32 -0700 Subject: [PATCH] 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. --- app/assets/javascripts/run-tests.js | 1 + karma.conf.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/run-tests.js b/app/assets/javascripts/run-tests.js index ad1de1989..5165dd49d 100644 --- a/app/assets/javascripts/run-tests.js +++ b/app/assets/javascripts/run-tests.js @@ -2,5 +2,6 @@ // Hooks into the test view logic for running tests. 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.runTests(); \ No newline at end of file diff --git a/karma.conf.js b/karma.conf.js index bf0924f77..5a4224edf 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -43,7 +43,7 @@ module.exports = function(config) { // level of logging // 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 autoWatch : true,