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:
parent
8f70909382
commit
34c59c8f4d
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user