[Synthetics] Update service location push debug logs (#148811)

This commit is contained in:
Shahzad 2023-01-13 10:55:57 +01:00 committed by GitHub
parent 7bfd5fd243
commit b06418127b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,14 +184,14 @@ export class ServiceAPIClient {
tap((result) => {
this.logger.debug(result.data);
this.logger.debug(
`Successfully called service with method ${method} with ${allMonitors.length} monitors `
`Successfully called service location ${url} with method ${method} with ${locMonitors.length} monitors `
);
}),
catchError((err: AxiosError<{ reason: string; status: number }>) => {
pushErrors.push({ locationId: id, error: err.response?.data! });
const reason = err.response?.data?.reason ?? '';
err.message = `Failed to call service location ${url} with method ${method} with ${allMonitors.length} monitors: ${err.message}, ${reason}`;
err.message = `Failed to call service location ${url} with method ${method} with ${locMonitors.length} monitors: ${err.message}, ${reason}`;
this.logger.error(err);
sendErrorTelemetryEvents(this.logger, this.server.telemetry, {
reason: err.response?.data?.reason,