Skip to content

Commit b77ece1

Browse files
committed
Log when disabling an endpoint
1 parent a73dc80 commit b77ece1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/webapp/app/services/endpoints/performEndpointIndexService.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,11 @@ async function updateEndpointIndexWithError(
492492
recentIndexes.length === MAX_SEQUENTIAL_FAILURE_COUNT - 1 &&
493493
recentIndexes.every((index) => index.status === "FAILURE")
494494
) {
495+
logger.debug("Disabling endpoint", {
496+
endpointId,
497+
error,
498+
});
499+
495500
await prismaClient.endpoint.update({
496501
where: {
497502
id: endpointId,

0 commit comments

Comments
 (0)