Fixed a nasty bug that was for debugging but was logging sudo pass to log file! Also fixed the script to work properly for logging random data generation and advanced mode

This commit is contained in:
hamilcarBarca17
2023-08-03 13:55:51 -06:00
parent 8b6738722b
commit bc00dca35e
4 changed files with 59 additions and 32 deletions
@@ -105,10 +105,8 @@ parse-arguments() {
show-properties() {
log-info "Using the following settings to randomly populate the DynamoDB benchmarking table:"
cat <<-EOF
${cyan}
ATTRIBUTES=$ATTRIBUTES
TABLE_NAME=$TABLE_NAME
${default}
EOF
}
@@ -178,3 +176,5 @@ while [[ $items_written -lt $ITEMS ]]; do
log-info "Sleeping for 2 seconds to avoid the partition throughput limits..."
sleep 2
done
echo -e "\n\n\nSuccessfully wrote $items_written randomly generated items to DynamoDB!"