Skip to content

Commit f7c4854

Browse files
committed
added log for reset idempotency
1 parent f232367 commit f7c4854

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/webapp/app/v3/services/resetIdempotencyKey.server.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { AuthenticatedEnvironment } from "~/services/apiAuth.server";
22
import { BaseService, ServiceValidationError } from "./baseService.server";
3+
import { logger } from "~/services/logger.server";
34

45
export class ResetIdempotencyKeyService extends BaseService {
56
public async call(
@@ -26,6 +27,10 @@ export class ResetIdempotencyKeyService extends BaseService {
2627
);
2728
}
2829

30+
logger.info(
31+
`Reset idempotency key: ${idempotencyKey} for task: ${taskIdentifier} in env: ${authenticatedEnv.id}, affected ${count} run(s)`
32+
);
33+
2934
return { id: idempotencyKey };
3035
}
3136
}

0 commit comments

Comments
 (0)