CASH-79
CASH-79 add some info to the global logger to help line up a cloudwatch error with an entry in quantum
This commit is contained in:
parent
25717e674b
commit
dca0539448
1 changed files with 6 additions and 1 deletions
|
|
@ -32,7 +32,12 @@ export class Logger {
|
|||
}
|
||||
|
||||
formatLogEntry(message, details) {
|
||||
return `Application: ${applicationConfig.APPLICATION_NAME}\n${message}\n${
|
||||
const refSeqNumber = store.getters.order.referralSequenceNumber ?? "";
|
||||
const year = store.getters.vehicle.year ?? "";
|
||||
const make = store.getters.vehicle.make ?? "";
|
||||
const model = store.getters.vehicle.model ?? "";
|
||||
const vehicle = `${year} ${make} ${model}`;
|
||||
return `${new Date()} ReferralSequenceNumber: ${refSeqNumber}\nVehicle: ${vehicle}\nApplication: ${applicationConfig.APPLICATION_NAME}\n${message}\n${
|
||||
details ? JSON.stringify(details, undefined, 2) : ""
|
||||
}`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue