Skip to content

Commit

Permalink
Increase non-http status request error log level (#711)
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <jeremy.setton@gmail.com>
  • Loading branch information
jsetton authored Oct 27, 2024
1 parent d878693 commit 86b6b24
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 86b6b24

Please sign in to comment.