From 275e5c31c8f90b257430b08eb48e0e38c37a6109 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 3 Oct 2020 15:13:48 -0400 Subject: [PATCH] webaccess: Wrap long lines --- src/node/hooks/express/webaccess.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/node/hooks/express/webaccess.js b/src/node/hooks/express/webaccess.js index 744a6d31..1fc9c8f7 100644 --- a/src/node/hooks/express/webaccess.js +++ b/src/node/hooks/express/webaccess.js @@ -213,10 +213,16 @@ exports.expressConfigure = (hook_name, args, cb) => { next(); }); - // If the log level specified in the config file is WARN or ERROR the application server never starts listening to requests as reported in issue #158. - // Not installing the log4js connect logger when the log level has a higher severity than INFO since it would not log at that level anyway. - if (!(settings.loglevel === 'WARN' || settings.loglevel === 'ERROR')) - args.app.use(log4js.connectLogger(httpLogger, {level: log4js.levels.DEBUG, format: ':status, :method :url'})); + // If the log level specified in the config file is WARN or ERROR the application server never + // starts listening to requests as reported in issue #158. Not installing the log4js connect + // logger when the log level has a higher severity than INFO since it would not log at that level + // anyway. + if (!(settings.loglevel === 'WARN' && settings.loglevel === 'ERROR')) { + args.app.use(log4js.connectLogger(httpLogger, { + level: log4js.levels.DEBUG, + format: ':status, :method :url', + })); + } /* Do not let express create the session, so that we can retain a * reference to it for socket.io to use. Also, set the key (cookie