From 098ec5833f405ea093a1666d2a9578e1c8eecfca Mon Sep 17 00:00:00 2001 From: XiaofeiCao Date: Thu, 28 Nov 2024 14:15:13 +0800 Subject: [PATCH] enhance logging --- eng/automation/generate_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eng/automation/generate_utils.py b/eng/automation/generate_utils.py index 70522b8a2e29a..e27371209285d 100755 --- a/eng/automation/generate_utils.py +++ b/eng/automation/generate_utils.py @@ -422,8 +422,10 @@ def generate_typespec_project( if sdk_folder: # parse service and module module, service = parse_service_module(sdk_folder) - except Exception: - pass + else: + logging.info(f"[GENERATE] Code generation failed. No sdk folder found.") + except Exception as e: + logging.error(f"[GENERATE] Code generation failed. Finding sdk folder fails: {e}") return succeeded, require_sdk_integration, sdk_folder, service, module