mirror of https://github.com/icedream/ts3bot.git
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
parent
f083a65445
commit
2a5bdf906a
|
@ -43,8 +43,8 @@ initialized_loggers = []
|
||||||
module.exports = (name, options) =>
|
module.exports = (name, options) =>
|
||||||
if not(name in initialized_loggers)
|
if not(name in initialized_loggers)
|
||||||
logger = container.add name
|
logger = container.add name
|
||||||
logger.addFilter (msg, meta, level) => "[#{name}] #{msg}"
|
logger.filters.push (level, msg, meta) => "[#{name}] #{msg}"
|
||||||
initialized_loggers.push name
|
initialized_loggers.push name
|
||||||
return logger
|
return logger
|
||||||
|
|
||||||
container.get name
|
container.get name
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
"merge": "^1.2.0",
|
"merge": "^1.2.0",
|
||||||
"mkdirp": "^0.5.1",
|
"mkdirp": "^0.5.1",
|
||||||
"named-regexp": "^0.1.1",
|
"named-regexp": "^0.1.1",
|
||||||
"nconf": "^0.7.2",
|
"nconf": "^0.8.4",
|
||||||
"npm-which": "^2.0.0",
|
"npm-which": "^3.0.1",
|
||||||
"parse-duration": "^0.1.1",
|
"parse-duration": "^0.1.1",
|
||||||
"password-generator": "^2.0.1",
|
"password-generator": "^2.0.1",
|
||||||
"pretty-ms": "^2.1.0",
|
"pretty-ms": "^2.1.0",
|
||||||
|
@ -46,9 +46,9 @@
|
||||||
"sync": "^0.2.5",
|
"sync": "^0.2.5",
|
||||||
"temp": "^0.8.3",
|
"temp": "^0.8.3",
|
||||||
"valid-url": "^1.0.9",
|
"valid-url": "^1.0.9",
|
||||||
"webchimera.js": "^0.1.38",
|
"webchimera.js": "^0.2.7",
|
||||||
"which": "^1.1.2",
|
"which": "^1.1.2",
|
||||||
"winston": "^1.0.1",
|
"winston": "^2.3.1",
|
||||||
"xvfb": "git://github.com/icedream/node-xvfb.git",
|
"xvfb": "git://github.com/icedream/node-xvfb.git",
|
||||||
"youtube-dl": "^1.10.5"
|
"youtube-dl": "^1.10.5"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue