From 7bd5435f50e3a9ac12871fba6f4c7de795900e8f Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 29 Aug 2020 00:24:58 -0400 Subject: [PATCH] webaccess: Log hook errors --- src/node/hooks/express/webaccess.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node/hooks/express/webaccess.js b/src/node/hooks/express/webaccess.js index 2be42ceab..a2662a8cc 100644 --- a/src/node/hooks/express/webaccess.js +++ b/src/node/hooks/express/webaccess.js @@ -42,6 +42,7 @@ exports.authnFailureDelayMs = 1000; exports.checkAccess = (req, res, next) => { const hookResultMangle = (cb) => { return (err, data) => { + if (err != null) httpLogger.error(`Error during access check: ${err}`); return cb(!err && data.length && data[0]); }; };