Skip to content

Commit

Permalink
Increase non-http status request error log level
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <[email protected]>
  • Loading branch information
jsetton committed Oct 27, 2024
1 parent d878693 commit 9ecc112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda/alexa/smarthome/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const logError = (error, directive) => {

// Define log level channel and error message based on error type
if (error instanceof AxiosError) {
level = 'warn';
level = error.response?.status ? 'warn' : 'error';
message = `RequestError: ${error.message}`;
} else {
level = 'error';
Expand Down

0 comments on commit 9ecc112

Please sign in to comment.