mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Synthetics] Update service location push debug logs (#148811)
This commit is contained in:
parent
7bfd5fd243
commit
b06418127b
1 changed files with 2 additions and 2 deletions
|
@ -184,14 +184,14 @@ export class ServiceAPIClient {
|
||||||
tap((result) => {
|
tap((result) => {
|
||||||
this.logger.debug(result.data);
|
this.logger.debug(result.data);
|
||||||
this.logger.debug(
|
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 }>) => {
|
catchError((err: AxiosError<{ reason: string; status: number }>) => {
|
||||||
pushErrors.push({ locationId: id, error: err.response?.data! });
|
pushErrors.push({ locationId: id, error: err.response?.data! });
|
||||||
const reason = err.response?.data?.reason ?? '';
|
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);
|
this.logger.error(err);
|
||||||
sendErrorTelemetryEvents(this.logger, this.server.telemetry, {
|
sendErrorTelemetryEvents(this.logger, this.server.telemetry, {
|
||||||
reason: err.response?.data?.reason,
|
reason: err.response?.data?.reason,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue