Skip to content

Commit

Permalink
Improve log output update periphery (#904)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
0xDEnYO and coderabbitai[bot] authored Dec 12, 2024
1 parent 6816a3a commit 3e32bee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/deploy/deploySingleContract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion script/tasks/diamondUpdatePeriphery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3e32bee

Please sign in to comment.