Skip to content

Commit

Permalink
Log when disabling an endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ericallam committed May 15, 2024
1 parent a73dc80 commit b77ece1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,11 @@ async function updateEndpointIndexWithError(
recentIndexes.length === MAX_SEQUENTIAL_FAILURE_COUNT - 1 &&
recentIndexes.every((index) => index.status === "FAILURE")
) {
logger.debug("Disabling endpoint", {
endpointId,
error,
});

await prismaClient.endpoint.update({
where: {
id: endpointId,
Expand Down

0 comments on commit b77ece1

Please sign in to comment.