forked from enviPath/enviPy
Current Dev State
This commit is contained in:
16
static/js/ketcher2/node_modules/coveralls/lib/logger.js
generated
vendored
Normal file
16
static/js/ketcher2/node_modules/coveralls/lib/logger.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
var index = require('../index');
|
||||
|
||||
module.exports = function(){
|
||||
return require('log-driver')({level : getLogLevel()});
|
||||
};
|
||||
|
||||
function getLogLevel(){
|
||||
if (index.options.verbose || hasDebugEnvVariable()) {
|
||||
return 'warn';
|
||||
}
|
||||
return 'error';
|
||||
}
|
||||
|
||||
function hasDebugEnvVariable(){
|
||||
return process.env.NODE_COVERALLS_DEBUG == 1;
|
||||
}
|
||||
Reference in New Issue
Block a user