Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logLevel in config file is not honored #832

Closed
christothes opened this issue Nov 19, 2013 · 5 comments
Closed

logLevel in config file is not honored #832

christothes opened this issue Nov 19, 2013 · 5 comments

Comments

@christothes
Copy link

Running Karma v0.10.4 with a logLevel of: config.LOG_ERROR and all my console.info logs are displaying in the output console running Karma.

@vojtajina
Copy link
Contributor

This works for me. Just tried v0.10.4, latest stable (0.10.6 and master). Are you sure you are not overriding it from CLI or something?

Can you share your karma.conf.js?

@christothes
Copy link
Author

I'm not aware of any override I may be doing.

config file is:

module.exports = function (config) {
    config.set({

    // base path, that will be used to resolve files and exclude
    basePath: '',


    // frameworks to use
    frameworks: ['jasmine'],


    // list of files / patterns to load in the browser
    files: [
        'public/javascripts/libs/angular.js',
        'public/javascripts/libs/angular-mocks.js',
        'public/javascripts/libs/angular-route.js',
        'public/javascripts/app/*.js'

    ],


    // list of files to exclude
    exclude: [

    ],


    // test results reporter to use
    // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
    reporters: ['progress'],


    // web server port
    port: 9876,


    // enable / disable colors in the output (reporters and logs)
    colors: true,


    // level of logging
    // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
    logLevel: config.LOG_ERROR,


    // enable / disable watching file and executing tests whenever any file changes
    autoWatch: true,


    // Start these browsers, currently available:
    // - Chrome
    // - ChromeCanary
    // - Firefox
    // - Opera (has to be installed with `npm install karma-opera-launcher`)
    // - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
    // - PhantomJS
    // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
    browsers: ['Chrome'],


    // If browser does not capture in given timeout [ms], kill it
    captureTimeout: 60000,


    // Continuous Integration mode
    // if true, it capture browsers, run tests and exit
    singleRun: false
    });
};

@vojtajina
Copy link
Contributor

Oh, are you talking about console.log stuff from the browser?
That is actually a different thing. There is an issue talking about possiblity of merging these two things, see #480

@christothes
Copy link
Author

yes, I was assuming that the logLevel setting would suppress these according to the level specified. I could have sworn that in previous versions all my console.info output was being suppressed.

@vojtajina
Copy link
Contributor

All right, then this is a duplicate of #480, closing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants