removes winston-null-transport and uses the 'silent' option built-in winston instead

This commit is contained in:
Zachary Boyd 2018-09-08 23:47:10 -04:00
parent 07b06082e2
commit 0b60f6f949
3 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## [4.0.0] - 2018-09-09
### Changes
- All methods now return promises instead of accepting callbacks. Methods now take advantage of async/await resulting in clearer code. Compatibility with node < v8 will be broken.
## [3.4.3] - 2018-08-10
### Added

View file

@ -1,6 +1,6 @@
{
"name": "tor-router",
"version": "3.4.3",
"version": "4.0.0",
"main": "src/index.js",
"repository": "git@github.com:znetstar/tor-router.git",
"author": "Zachary Boyd <zachary@zacharyboyd.nyc>",
@ -35,7 +35,6 @@
"socksv5": "git+https://github.com/lee-elenbaas/socksv5.git",
"temp": "^0.8.3",
"winston": "^3.0.0-rc5",
"winston-null-transport": "git+https://github.com/NCIOCPL/winston-null-transport.git#1.0.0",
"yargs": "^11.0.0"
}
}

View file

@ -19,7 +19,8 @@ nconf.defaults(require(`${__dirname}/../src/default_config.js`));
var logger = winston.createLogger({
level: 'info',
format: winston.format.simple(),
transports: [new (require('winston-null-transport'))() ]
silent: true,
transports: [ new (winston.transports.Console)({ silent: true }) ]
});
const WAIT_FOR_CREATE = 120000;