Skip to content

Commit 161d623

Browse files
additional logs
1 parent 0a6a7c7 commit 161d623

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

packages/backend/src/azuredevops.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ async function getRepos(
291291
const results = await Promise.allSettled(repoList.map(async (repo) => {
292292
try {
293293
const [org, projectName, repoName] = repo.split('/');
294-
logger.info(`Fetching repository info for ${repo}...`);
294+
logger.debug(`Fetching repository info for ${repo}...`);
295295

296296
const { durationMs, data: result } = await measure(async () => {
297297
const fetchFn = async () => {
@@ -306,7 +306,7 @@ async function getRepos(
306306
return fetchWithRetry(fetchFn, repo, logger);
307307
});
308308

309-
logger.info(`Found info for repository ${repo} in ${durationMs}ms`);
309+
logger.debug(`Found info for repository ${repo} in ${durationMs}ms`);
310310
return {
311311
type: 'valid' as const,
312312
data: [result]

packages/backend/src/ee/accountPermissionSyncer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class AccountPermissionSyncer {
181181

182182
const config = await loadConfig(env.CONFIG_PATH);
183183

184-
logger.info(`Syncing permissions for ${account.provider} account (id: ${account.id}) for user ${account.user.email}...`);
184+
logger.debug(`Syncing permissions for ${account.provider} account (id: ${account.id}) for user ${account.user.email}...`);
185185

186186
// Ensure the OAuth token is fresh, refreshing it if it is expired or near expiry.
187187
// Throws and sets Account.tokenRefreshErrorMessage if the refresh fails.
@@ -370,7 +370,7 @@ export class AccountPermissionSyncer {
370370
}
371371
});
372372

373-
logger.info(`Permissions synced for ${account.provider} account (id: ${account.id}) for user ${account.user.email}`);
373+
logger.debug(`Permissions synced for ${account.provider} account (id: ${account.id}) for user ${account.user.email}`);
374374
}
375375

376376
private async onJobFailed(job: Job<AccountPermissionSyncJob> | undefined, err: Error) {

packages/backend/src/ee/repoPermissionSyncer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export class RepoPermissionSyncer {
186186
throw new Error(`Repo ${id} not found`);
187187
}
188188

189-
logger.info(`Syncing permissions for repo ${repo.displayName}...`);
189+
logger.debug(`Syncing permissions for repo ${repo.displayName}...`);
190190

191191
const credentials = await getAuthCredentialsForRepo(repo, logger);
192192
if (!credentials) {
@@ -388,7 +388,7 @@ export class RepoPermissionSyncer {
388388
}
389389
});
390390

391-
logger.info(`Permissions synced for repo ${repo.displayName ?? repo.name}`);
391+
logger.debug(`Permissions synced for repo ${repo.displayName ?? repo.name}`);
392392
}
393393

394394
private async onJobFailed(job: Job<RepoPermissionSyncJob> | undefined, err: Error) {

packages/backend/src/ee/syncSearchContexts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export const syncSearchContexts = async (params: SyncSearchContextsParams) => {
205205
});
206206

207207
for (const context of deletedContexts) {
208-
logger.info(`Deleting search context with name '${context.name}'. ID: ${context.id}`);
208+
logger.debug(`Deleting search context with name '${context.name}'. ID: ${context.id}`);
209209
await db.searchContext.delete({
210210
where: {
211211
id: context.id,

packages/backend/src/repoCompileUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ export const compileGenericGitHostConfig_file = async (
609609
};
610610
}
611611

612-
logger.info(`Found ${repoPaths.length} path(s) matching pattern '${configUrl.pathname}'`);
612+
logger.debug(`Found ${repoPaths.length} path(s) matching pattern '${configUrl.pathname}'`);
613613

614614
await Promise.all(repoPaths.map((repoPath) => gitOperationLimit(async () => {
615615
const stat = await fs.stat(repoPath).catch(() => null);
@@ -691,7 +691,7 @@ export const compileGenericGitHostConfig_file = async (
691691
logger.warn(warning);
692692
warnings.push(warning);
693693
} else {
694-
logger.info(`Successfully found ${repos.length} valid git repository(s) from ${repoPaths.length} matched path(s)`);
694+
logger.debug(`Successfully found ${repos.length} valid git repository(s) from ${repoPaths.length} matched path(s)`);
695695
}
696696

697697
return {

packages/backend/src/zoekt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ export const cleanupTempShards = async (repo: Repo) => {
7272

7373
for (const file of tempFiles) {
7474
const filePath = `${INDEX_CACHE_DIR}/${file}`;
75-
logger.info(`Cleaning up temp shard file: ${filePath}`);
75+
logger.debug(`Cleaning up temp shard file: ${filePath}`);
7676
await rm(filePath, { force: true });
7777
}
7878

7979
if (tempFiles.length > 0) {
80-
logger.info(`Cleaned up ${tempFiles.length} temp shard file(s) for repo ${repo.id}`);
80+
logger.debug(`Cleaned up ${tempFiles.length} temp shard file(s) for repo ${repo.id}`);
8181
}
8282
} catch (error) {
8383
// Log but don't throw - cleanup is best effort

0 commit comments

Comments
 (0)