diff --git a/scripts/automation_generate.sh b/scripts/automation_generate.sh index 7e0a9b9537cb..a913503893b2 100644 --- a/scripts/automation_generate.sh +++ b/scripts/automation_generate.sh @@ -7,7 +7,7 @@ export PATH TEMP_FILE="$TMPDIR/venv-sdk/auto_temp.json" # generate code -python -m packaging_tools.sdk_generator "$1" "$TEMP_FILE" 2>&1 +python -m packaging_tools.sdk_generator "$1" "$TEMP_FILE" --debug 2>&1 echo "[Generate] codegen done!!!" if [ ! -f "$TEMP_FILE" ]; then echo "[Autorest]$TEMP_FILE does not exist!!!Error happened during codegen" @@ -19,7 +19,7 @@ if [ -f "$2" ]; then fi # package -python -m packaging_tools.sdk_package "$TEMP_FILE" "$2" 2>&1 +python -m packaging_tools.sdk_package "$TEMP_FILE" "$2" --debug 2>&1 echo "[Generate] generate done!!!" if [ ! -f "$2" ]; then echo "[Autorest]$2 does not exist!!!Error happened during package" diff --git a/tools/azure-sdk-tools/packaging_tools/sdk_package.py b/tools/azure-sdk-tools/packaging_tools/sdk_package.py index b504d83551e6..14ce2c7e1115 100644 --- a/tools/azure-sdk-tools/packaging_tools/sdk_package.py +++ b/tools/azure-sdk-tools/packaging_tools/sdk_package.py @@ -73,7 +73,7 @@ def main(generate_input, generate_output): if "_python.json" in file and package_name in file: package["apiViewArtifact"] = str(Path(package_path, file)) except Exception as e: - _LOGGER.info(f"Fail to generate ApiView token file for {package_name}: {e}") + _LOGGER.debug(f"Fail to generate ApiView token file for {package_name}: {e}") # Installation package package["installInstructions"] = { "full": "You can install the use using pip install of the artifacts.", @@ -89,6 +89,10 @@ def main(generate_input, generate_output): with open(generate_output, "w") as writer: json.dump(result, writer) + _LOGGER.info( + f"Congratulations! Succeed to build package for {[p['packageName'] for p in result['packages']]}. And you shall be able to see the generated code when running 'git status'." + ) + def generate_main(): """Main method"""