X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Flogger.js;h=281acedb8f3f4152db01c229bb9f54bac947dbed;hb=feb4bdfd9b46e87aadfa7c0d5338cde887d1f58c;hp=590ceaeb6c5be0ef69761166f497ed8a7d8b54ff;hpb=a6375e69668ea42e19531c6bc68dcd37f3f7cbd7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/logger.js b/server/helpers/logger.js index 590ceaeb6..281acedb8 100644 --- a/server/helpers/logger.js +++ b/server/helpers/logger.js @@ -8,7 +8,7 @@ winston.emitErrs = true const constants = require('../initializers/constants') -const label = constants.CONFIG.WEBSERVER.HOST + ':' + constants.CONFIG.WEBSERVER.PORT +const label = constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT // Create the directory if it does not exist mkdirp.sync(constants.CONFIG.STORAGE.LOG_DIR) @@ -22,7 +22,8 @@ const logger = new winston.Logger({ json: true, maxsize: 5242880, maxFiles: 5, - colorize: false + colorize: false, + prettyPrint: true }), new winston.transports.Console({ level: 'debug', @@ -30,7 +31,8 @@ const logger = new winston.Logger({ handleExceptions: true, humanReadableUnhandledException: true, json: false, - colorize: true + colorize: true, + prettyPrint: true }) ], exitOnError: true