Add improved logging to export procedures.

This commit is contained in:
Patrick Fic
2022-05-20 10:31:31 -07:00
parent f3ee20e89d
commit 5832a5f529
6 changed files with 8 additions and 6 deletions

View File

@@ -197,7 +197,8 @@ exports.default = async (req, res) => {
} catch (error) {
console.log(error);
logger.log("qbo-receivable-create-error", "ERROR", req.user.email, {
error,
error: error.message,
stack: error.stack,
});
res.status(400).json(error);
}