Skip to content

Commit 69e4b9c

Browse files
Fix: Move OAuth2 grant logging from Information to Debug level (#165)
* Initial plan * Change OAuth2 grant logging from LogInformation to LogDebug level Co-authored-by: sellakumaran <147754920+sellakumaran@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sellakumaran <147754920+sellakumaran@users.noreply.github.com>
1 parent fe405c0 commit 69e4b9c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Microsoft.Agents.A365.DevTools.Cli/Commands/DeployCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ private static async Task EnsureMcpOauth2PermissionGrantsAsync(
397397

398398
if (!ok) throw new InvalidOperationException("Failed to update oauth2PermissionGrant.");
399399

400-
logger.LogInformation(" - OAuth2 granted: client {ClientId} to resource {ResourceId} scopes [{Scopes}]",
400+
logger.LogDebug(" - OAuth2 granted: client {ClientId} to resource {ResourceId} scopes [{Scopes}]",
401401
blueprintSpObjectId, mcpPlatformSpObjectId, string.Join(' ', scopes));
402402
}
403403

src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/SetupHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public static async Task EnsureResourcePermissionsAsync(
260260
}
261261

262262
// 2. Grant OAuth2 permissions (admin consent)
263-
logger.LogInformation(" - OAuth2 grant: client {ClientId} to resource {ResourceId} scopes [{Scopes}]",
263+
logger.LogDebug(" - OAuth2 grant: client {ClientId} to resource {ResourceId} scopes [{Scopes}]",
264264
blueprintSpObjectId, resourceSpObjectId, string.Join(' ', scopes));
265265

266266
var response = await graph.CreateOrUpdateOauth2PermissionGrantAsync(

0 commit comments

Comments
 (0)