Skip to content

Commit

Permalink
fix(sqs-wrapper): decrease error log level (#483)
Browse files Browse the repository at this point in the history
"_Function was not invoked properly, message body is not a valid JSON_"
errors are not actual errors creating unnecessary noise in the ops
alerts

hence, decreasing the level to warn
  • Loading branch information
ekremney authored and solaris007 committed Dec 12, 2024
1 parent 875948d commit 61c6c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/spacecat-shared-utils/src/sqs.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function sqsEventAdapter(fn) {
message = JSON.parse(records[0]?.body);
log.info(`Received message with id: ${records[0]?.messageId}`);
} catch (e) {
log.error('Function was not invoked properly, message body is not a valid JSON', e);
log.warn('Function was not invoked properly, message body is not a valid JSON', e);
return new Response('', {
status: 400,
headers: {
Expand Down

0 comments on commit 61c6c7e

Please sign in to comment.