Garret Harp
11/24/2021, 10:50 PMFrank
{
"level": "error",
"message": "...",
"stack": "...",
}
Whatever is in the “message” will be extracted.Frank
Garret Harp
11/26/2021, 2:32 PM{
"@exception":{
"stack":[
"at Request.extractError (/var/runtime/node_modules/aws-sdk/lib/protocol/json.js:52:27)",
"..."
],
"message":"Transaction cancelled, please refer cancellation reasons for specific reasons [None, ConditionalCheckFailed, None, None]",
"code":"TransactionCanceledException",
"name":"TransactionCanceledException",
"time":"2021-11-24T16:29:07.427Z",
"requestId":"IPVMD0BNIFN481M9GMF5G4ACJNVV4KQNSO5AEMVJF66Q9ASUAAJG",
"statusCode":400,
"retryable":false,
"retryDelay":38.027943065468705
},
"body": { ... },
"message":"Transaction cancelled, please refer cancellation reasons for specific reasons [None, ConditionalCheckFailed, None, None]",
"@chan":"error",
"@module":"app"
}
In seed it uses the entire JSON string as the error message displayed and because we include request specific context in the logs we get an issue for every single log even if it's the same issueFrank
logger.error
?Garret Harp
11/26/2021, 3:12 PM