Skip to content

Commit 685ed2c

Browse files
authored
{Core} Log _get_attr exceptions (#19030)
1 parent 9c1f1ee commit 685ed2c

File tree

1 file changed

+7
-0
lines changed
  • src/azure-cli-core/azure/cli/core/profiles

1 file changed

+7
-0
lines changed

src/azure-cli-core/azure/cli/core/profiles/_shared.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
from functools import total_ordering
99
from importlib import import_module
1010

11+
from knack.log import get_logger
12+
13+
14+
logger = get_logger(__name__)
15+
1116

1217
class APIVersionException(Exception):
1318
def __init__(self, type_name, api_profile):
@@ -574,6 +579,8 @@ def _get_attr(sdk_path, mod_attr_path, checked=True):
574579
op = getattr(op, part)
575580
return op
576581
except (ImportError, AttributeError) as ex:
582+
import traceback
583+
logger.debug(traceback.format_exc())
577584
if checked:
578585
return None
579586
raise ex

0 commit comments

Comments
 (0)