From e953c7f258d7ab5497b93372c258c654146211d4 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Fri, 23 Jun 2023 09:21:22 +0200 Subject: [PATCH] Add logging --- dist/index.js | 1 + src/classes/state.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/dist/index.js b/dist/index.js index 44e5e2ba..cfb8dad1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1585,6 +1585,7 @@ class State { const tmpDir = os_1.default.tmpdir(); const file = path_1.default.join(tmpDir, crypto_1.default.randomBytes(8).readBigUInt64LE(0).toString()); fs_1.default.writeFileSync(file, serialized); + core.debug(`Persisting state includes info about ${this.processedIssuesIDs.size} issue(s)`); const artifactClient = artifact.create(); try { yield artifactClient.uploadArtifact(State.ARTIFACT_NAME, [file], tmpDir); diff --git a/src/classes/state.ts b/src/classes/state.ts index e0d86d88..5b1035ee 100644 --- a/src/classes/state.ts +++ b/src/classes/state.ts @@ -44,6 +44,9 @@ export class State implements IState { ); fs.writeFileSync(file, serialized); + core.debug( + `Persisting state includes info about ${this.processedIssuesIDs.size} issue(s)` + ); const artifactClient = artifact.create(); try { await artifactClient.uploadArtifact(State.ARTIFACT_NAME, [file], tmpDir);