Skip to content

Commit

Permalink
update dev scripts (#5466)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb authored Jan 24, 2025
1 parent 17b6716 commit 24dae63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions dev/scripts/common/logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ TS=$(tput setaf 2)
TAG=$(tput setaf 10)
RESET=$(tput sgr0)

# timestamp
TIMESTAMP=$(date "+%Y-%m-%d %H:%M:%S")

log(){
local _tag_name=${1}
local _msg=${@:2}
# timestamp
local TIMESTAMP=$(date "+%Y-%m-%d %H:%M:%S")

printf "${TS}${TIMESTAMP} ${TAG}[${_tag_name}\t] ${_msg}\n"
printf ${RESET}
Expand Down
2 changes: 1 addition & 1 deletion dev/scripts/load_test_customer_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ trigger_ocp_ingest() {
break
else
retries=$((retries + 1))
local wait_time=$((RANDOM % 10 + 1))
local wait_time=10
log-info "has_data is false for source_name $1, retrying in $wait_time seconds... (Attempt $retries/$max_retries)"
sleep "$wait_time"
fi
Expand Down

0 comments on commit 24dae63

Please sign in to comment.