1 | ;
|
2 |
|
3 | const logDriver = require('log-driver');
|
4 | const index = require('..');
|
5 |
|
6 | module.exports = () => logDriver({ level: getLogLevel() });
|
7 |
|
8 | function getLogLevel() {
|
9 | if (index.options.verbose || process.env.NODE_COVERALLS_DEBUG === 1 || process.env.NODE_COVERALLS_DEBUG === '1') {
|
10 | return 'debug';
|
11 | }
|
12 |
|
13 | return 'error';
|
14 | }
|