Skip to content

Commit

Permalink
chore(azure): increase logging when determining merge method (#27382)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 18, 2024
1 parent 4622396 commit f423aa5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/modules/platform/azure/azure-helper.ts
Expand Up @@ -119,6 +119,9 @@ export async function getMergeMethod(
branchRef?: string | null,
defaultBranch?: string,
): Promise<GitPullRequestMergeStrategy> {
logger.debug(
`getMergeMethod(branchRef=${branchRef}, defaultBranch=${defaultBranch})`,
);
type Scope = {
repositoryId: string;
refName?: string;
Expand Down Expand Up @@ -152,9 +155,9 @@ export async function getMergeMethod(
.filter((p) => p.settings.scope.some(isRelevantScope))
.map((p) => p.settings)[0];

logger.trace(
logger.debug(
// TODO: types (#22198)
`getMergeMethod(${repoId}, ${project}, ${branchRef!}) determining mergeMethod from matched policy:\n${JSON.stringify(
`getMergeMethod(branchRef=${branchRef!}) determining mergeMethod from matched policy:\n${JSON.stringify(
policyConfigurations,
null,
4,
Expand Down

0 comments on commit f423aa5

Please sign in to comment.