Skip to content

Commit c5daf84

Browse files
committed
msal-error-debug
1 parent e39ecb4 commit c5daf84

File tree

1 file changed

+3
-0
lines changed
  • src/azure-cli-core/azure/cli/core/auth

1 file changed

+3
-0
lines changed

src/azure-cli-core/azure/cli/core/auth/util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ def aad_error_handler(error, **kwargs):
2929
# To trigger this function for testing, simply provide an invalid scope:
3030
# az account get-access-token --scope https://my-invalid-scope
3131

32+
import json
33+
logger.debug('MSAL error: %s', json.dumps(error))
34+
3235
from azure.cli.core.util import in_cloud_console
3336
if in_cloud_console():
3437
import socket

0 commit comments

Comments
 (0)