Merged in feature/IO-2874-InsertBill-full-Error-Logging (pull request #1593)

IO-2874 InsertBill Full Error Log
This commit is contained in:
Allan Carr
2024-08-13 18:00:39 +00:00

View File

@@ -273,7 +273,7 @@ async function InsertBill(oauthClient, qbo_realmId, req, bill, vendor, bodyshop)
return result && result.json && result.json.Bill;
} catch (error) {
logger.log("qbo-payables-error", "DEBUG", req.user.email, bill.id, {
error: (error && error.authResponse && error.authResponse.body) || (error && error.message),
error: error, //(error && error.authResponse && error.authResponse.body) || (error && error.message),
method: "InsertBill"
});
throw error;