Update packages and adjust logging code to new Winston version.

The new Winston version does not expose an "addFilter" function anymore
and instead it seems that the filters member itself is directly exposed
so we can push our own filter directly to it. Additionally, the order of
parameters seems to be changed.
develop
Icedream 2017-05-07 23:57:48 +02:00
parent f083a65445
commit 2a5bdf906a
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
2 changed files with 6 additions and 6 deletions

View File

@ -43,8 +43,8 @@ initialized_loggers = []
module.exports = (name, options) =>
if not(name in initialized_loggers)
logger = container.add name
logger.addFilter (msg, meta, level) => "[#{name}] #{msg}"
logger.filters.push (level, msg, meta) => "[#{name}] #{msg}"
initialized_loggers.push name
return logger
container.get name
container.get name

View File

@ -32,8 +32,8 @@
"merge": "^1.2.0",
"mkdirp": "^0.5.1",
"named-regexp": "^0.1.1",
"nconf": "^0.7.2",
"npm-which": "^2.0.0",
"nconf": "^0.8.4",
"npm-which": "^3.0.1",
"parse-duration": "^0.1.1",
"password-generator": "^2.0.1",
"pretty-ms": "^2.1.0",
@ -46,9 +46,9 @@
"sync": "^0.2.5",
"temp": "^0.8.3",
"valid-url": "^1.0.9",
"webchimera.js": "^0.1.38",
"webchimera.js": "^0.2.7",
"which": "^1.1.2",
"winston": "^1.0.1",
"winston": "^2.3.1",
"xvfb": "git://github.com/icedream/node-xvfb.git",
"youtube-dl": "^1.10.5"
}