Skip to content

Commit

Permalink
remove validation for log_level (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: Teresa Romero <[email protected]>
  • Loading branch information
teresaromero authored Jun 4, 2024
1 parent 253379e commit 0736c17
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ done

log_level=$3
if [ ! -z "$log_level" ]; then
if [ "$log_level" = "debug" ] || [ "$log_level" = "info" ] || [ "$log_level" = "warn" ] || [ "$log_level" = "error" ] ; then
log_level="--log-level ${log_level}"
else
echo "unsupported log-level ${log_level}, supported options are: debug, info, warn, error"
exit 1
fi
log_level="--log-level ${log_level}"
fi

# https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging
Expand Down

0 comments on commit 0736c17

Please sign in to comment.