Skip to content

Commit 4b86bcd

Browse files
committed
add debug log for github auth app
1 parent a470ab8 commit 4b86bcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/backend/src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ export const fetchWithRetry = async <T>(
130130
export const getAuthCredentialsForRepo = async (repo: RepoWithConnections, db: PrismaClient, logger?: Logger): Promise<RepoAuthCredentials | undefined> => {
131131
// If we have github apps configured we assume that we must use them for github service auth
132132
if (repo.external_codeHostType === 'github' && hasEntitlement('github-app') && GithubAppManager.getInstance().appsConfigured()) {
133+
logger?.debug(`Using GitHub App for service auth for repo ${repo.displayName} hosted at ${repo.external_codeHostUrl}`);
134+
133135
const owner = repo.displayName?.split('/')[0];
134136
const deploymentHostname = new URL(repo.external_codeHostUrl).hostname;
135137
if (!owner || !deploymentHostname) {

0 commit comments

Comments
 (0)