IO-233 Logging & Credentials
This commit is contained in:
@@ -866,13 +866,16 @@ exports.default = async (req, res) => {
|
||||
|
||||
const [result, rawResponse, , rawRequest] = entegralResponse;
|
||||
} catch (error) {
|
||||
fs.writeFileSync(`./logs/${xmlObj.filename}`, xmlObj.xml);
|
||||
logger.log("arms-failed-job-upload", "ERROR", "api", job.shopid, {
|
||||
job: JSON.stringify({ id: job.id, ro_number: job.ro_number }),
|
||||
error: error.message || JSON.stringify(error),
|
||||
});
|
||||
console.log(error);
|
||||
}
|
||||
} catch (error) {
|
||||
logger.log("arms-failed-job", "ERROR", "api", job.shopid, {
|
||||
job: JSON.stringify({ id: job.id, ro_number: job.ro_number }),
|
||||
error: JSON.stringify(error),
|
||||
error: error.message || JSON.stringify(error),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user