Remove verbose logging

This commit is contained in:
2025-10-15 17:33:29 +01:00
parent b71ca508ea
commit 14b74e8ecd
6 changed files with 22 additions and 66 deletions

View File

@@ -7,7 +7,7 @@
#
# usage: rsc_log_backup.sh [filter]
usage() { log_error "Usage: $0 [filter]"; exit 1; }
usage() { echo "Usage: $0 [filter]" >&2; exit 1; }
if [[ -z "$1" ]]; then
usage
@@ -15,19 +15,7 @@ fi
MYDIR="$(dirname "$(realpath "$0")")"
# Support -v/--verbose and strip it from positional args
NEWARGS=()
for arg in "$@"; do
case "$arg" in
-v|--verbose)
VERBOSE=1
;;
*)
NEWARGS+=("$arg")
;;
esac
done
set -- "${NEWARGS[@]}"
# log_info prints by default now; no verbose flag
# source $MYDIR/rbk_api.conf
source $MYDIR/rsc_ops.sh