IO-2927 Extend Logging passthru
Signed-off-by: Allan Carr <allan.carr@thinkimex.com>
This commit is contained in:
@@ -180,9 +180,10 @@ exports.default = async (req, res) => {
|
|||||||
jobid: job.id,
|
jobid: job.id,
|
||||||
success: false,
|
success: false,
|
||||||
errorMessage:
|
errorMessage:
|
||||||
(error && error.authResponse && error.authResponse.body) ||
|
error?.authResponse?.body ||
|
||||||
error.response?.data?.Fault?.Error.map((e) => e.Detail).join(", ") ||
|
error?.response?.data?.Fault?.Error.map((e) => e.Detail).join(", ") ||
|
||||||
(error && error.message)
|
error?.response?.data ||
|
||||||
|
error?.message
|
||||||
});
|
});
|
||||||
console.log(error);
|
console.log(error);
|
||||||
logger.log("qbo-receivable-create-error", "ERROR", req.user.email, {
|
logger.log("qbo-receivable-create-error", "ERROR", req.user.email, {
|
||||||
|
|||||||
Reference in New Issue
Block a user