From 2355e70e6483468ef39550faa8a6a478bc0bd14c Mon Sep 17 00:00:00 2001 From: petersutter Date: Wed, 11 Dec 2024 16:17:41 +0100 Subject: [PATCH] temporarily add additional log statements --- backend/lib/routes/user.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/lib/routes/user.js b/backend/lib/routes/user.js index d0ded170e9..0b64af278d 100644 --- a/backend/lib/routes/user.js +++ b/backend/lib/routes/user.js @@ -12,6 +12,7 @@ const config = require('../config') const { encodeBase64 } = require('../utils') const { authorization } = require('../services') const { metricsRoute } = require('../middleware') +const logger = require('../logger') const router = module.exports = express.Router({ mergeParams: true, @@ -30,6 +31,7 @@ router.route('/subjectrules') const result = await authorization.selfSubjectRulesReview(user, namespace, accountId) res.send(result) } catch (err) { + logger.error('#Error on selfSubjectRulesReview', err) next(err) } })