Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): add -v/--verbose optional argument #1651

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions nodebuilder
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ bitcoin_tarball_validate()

GPG_GOOD_SIGNATURE_COUNT="$(bitcoin_tarball_validate_count_signatures)"
readonly GPG_GOOD_SIGNATURE_COUNT
log_debug "GPG_GOOD_SIGNATURE_COUNT=${GPG_GOOD_SIGNATURE_COUNT}"
if [ "${GPG_GOOD_SIGNATURE_COUNT}" -lt "${GPG_GOOD_SIGNATURES_REQUIRED}" ]; then
throw_error "INVALID SIGNATURES. The download has failed. This script cannot continue due to security concerns. Please review the temporary file ${TEMP_DIRECTORY}/${GPG_SIGNATURES_FILE}."
fi
Expand Down Expand Up @@ -1358,6 +1359,11 @@ log_success()
printf '\n'
}

log_verbose()
{
printf '[%s] DEBUG: %s\n' "$(get_log_timestamp)" "$*"
}

log_warning()
{
printf "[%s] WARN: ${CONSOLE_COLOR_YELLOW:-}%s" "$(get_log_timestamp)" "$*"
Expand Down