From 3e32beed4d6e1ea2ec4b259905fb3ea1caac22fd Mon Sep 17 00:00:00 2001 From: Daniel <77058885+0xDEnYO@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:25:36 +0700 Subject: [PATCH] Improve log output update periphery (#904) * change log output to warning * disable output of RAW return data on deployments in debug mode * Update script/tasks/diamondUpdatePeriphery.sh Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- script/deploy/deploySingleContract.sh | 2 +- script/tasks/diamondUpdatePeriphery.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/deploy/deploySingleContract.sh b/script/deploy/deploySingleContract.sh index 985820ce1..b7c1e73da 100755 --- a/script/deploy/deploySingleContract.sh +++ b/script/deploy/deploySingleContract.sh @@ -233,7 +233,7 @@ deploySingleContract() { RETURN_CODE=$? # print return data only if debug mode is activated - echoDebug "RAW_RETURN_DATA: $RAW_RETURN_DATA" + # echoDebug "RAW_RETURN_DATA: $RAW_RETURN_DATA" # check return data for error message (regardless of return code as this is not 100% reliable) if [[ $RAW_RETURN_DATA == *"\"logs\":[]"* && $RAW_RETURN_DATA == *"\"returns\":{}"* ]]; then diff --git a/script/tasks/diamondUpdatePeriphery.sh b/script/tasks/diamondUpdatePeriphery.sh index 56391f034..728a7aafd 100755 --- a/script/tasks/diamondUpdatePeriphery.sh +++ b/script/tasks/diamondUpdatePeriphery.sh @@ -126,7 +126,7 @@ function diamondUpdatePeriphery() { LAST_CALL=1 fi else - echo "[info] contract $CONTRACT not found in target state file > no action required" + warning "contract $CONTRACT not found in target state file. ACTION REQUIRED: Update target state file and try again if this contract should be included." fi done