chore: Reduce RTS error log spam (#31917)

We're logging the entire request/response, Axios config etc. in the
logs, which isn't adding any value in troubleshooting, but is making
reading logs _much_ harder.

This PR will print only the essential information to logs, concisely.
This commit is contained in:
Shrikant Sharat Kandula 2024-03-19 20:08:09 +05:30 committed by GitHub
parent 8f70909382
commit 34c59c8f4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,10 +46,10 @@ export async function tryAuth(socket: Socket) {
} else if (error.response) { } else if (error.response) {
log.error( log.error(
"Error response received while authentication: ", "Error response received while authentication: ",
error.response, JSON.stringify(error.response.data), // this is so the message shows up in one line.
); );
} else { } else {
log.error("Error authenticating", error); log.error("Error authenticating", error.cause?.toString());
} }
return false; return false;
} }