Skip to content

Commit 65cfd85

Browse files
committed
Add logging
1 parent 32fb4e5 commit 65cfd85

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ import {
7676
} from "./repo-states-store";
7777
import { GITHUB_AUTH_PROVIDER_ID } from "../common/vscode/authentication";
7878
import { FetchError } from "node-fetch";
79+
import { extLogger } from "../common";
7980

8081
const maxRetryCount = 3;
8182

@@ -632,8 +633,14 @@ export class VariantAnalysisManager
632633
e instanceof FetchError &&
633634
(e.code === "ETIMEDOUT" || e.code === "ECONNRESET")
634635
) {
636+
void extLogger.log(
637+
`Timeout while trying to download variant analysis with id: ${variantAnalysis.id}. Retrying...`,
638+
);
635639
continue;
636640
}
641+
void extLogger.log(
642+
`Failed to download variable analysis after ${retry} attempts.`,
643+
);
637644
throw e;
638645
}
639646
}

0 commit comments

Comments
 (0)