1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Upgrade dependencies

This commit is contained in:
Chocobozzz 2018-06-26 17:52:14 +02:00
parent 9b67da3d9b
commit 85b4d9c52e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 337 additions and 825 deletions

View file

@ -30,7 +30,6 @@ const consoleLoggerFormat = winston.format.printf(info => {
if (additionalInfos === '{}') additionalInfos = ''
else additionalInfos = ' ' + additionalInfos
if (info.message && info.message.stack !== undefined) info.message = info.message.stack
return `[${info.label}] ${info.timestamp} ${info.level}: ${info.message}${additionalInfos}`
})
@ -39,10 +38,6 @@ const jsonLoggerFormat = winston.format.printf(infoArg => {
? Object.assign({}, infoArg, { err: infoArg.err.stack })
: infoArg
if (infoArg.message && infoArg.message.stack !== undefined) {
info = Object.assign({}, info, { message: infoArg.message.stack })
}
return JSON.stringify(info)
})
@ -53,7 +48,7 @@ const labelFormatter = winston.format.label({
label
})
const logger = new winston.createLogger({
const logger = winston.createLogger({
level: CONFIG.LOG.LEVEL,
transports: [
new winston.transports.File({
@ -70,7 +65,6 @@ const logger = new winston.createLogger({
}),
new winston.transports.Console({
handleExceptions: true,
humanReadableUnhandledException: true,
format: winston.format.combine(
timestampFormatter,
winston.format.splat(),