feat: always log original object on prudence rejection

This commit is contained in:
zkldi
2022-08-18 15:07:48 +01:00
parent e455246376
commit e07297f5d1
@@ -38,6 +38,7 @@ const API_ERR_HANDLER =
`Prudence rejection: ${error.message}, ${stringVal} [K:${error.keychain}]`,
{
userVal: error.userVal,
fullObj: req.method === "GET" ? req.query : req.safeBody,
}
);