server: bkctld-inc: Add Begining/end log message (with the inc name) and invert logging priorities

Progress messages are now notice
Start/stop messages are info
This commit is contained in:
Ludovic Poujol 2025-01-10 12:41:12 +01:00
parent 9344bef64c
commit 981b8978e3
Signed by: lpoujol
SSH key fingerprint: SHA256:YZbQWfjHONnvIGkFZMs0xRKtqzqGqwtZU+kCOKhZXPA
2 changed files with 9 additions and 3 deletions

View file

@ -17,6 +17,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Changed
* bkctld-inc: Add log message at begining/end of operations (with the inc name)
* bkctld-inc: Inverted log message priorities (progress messages are notice, and start/finish are info)
* bkctld-status: Disable padding for the last column [#54](https://gitea.evolix.org/evolix/evobackup/pulls/54)
### Deprecated

View file

@ -49,6 +49,8 @@ jails_list=$(jails_list)
jails_total=$(echo "$jails_list" | wc -w)
jails_count=0
notice "Begining creating incs (name: ${inc_name}) for ${jails_total} jails"
for jail_name in ${jails_list}; do
jails_count=$((jails_count+1))
jail_path=$(jail_path "${jail_name}")
@ -59,8 +61,8 @@ for jail_name in ${jails_list}; do
if [ -n "${incs_policy_file}" ]; then
# If inc directory is not present, we proceed with inc creation
if [ ! -d "${inc_path}" ]; then
info "Progress: jail ${jails_count} out of ${jails_total}"
notice "Create inc '${inc_name}' for jail '${jail_name}' : start"
notice "Progress: jail ${jails_count} out of ${jails_total}"
info "Create inc '${inc_name}' for jail '${jail_name}' : start"
if is_btrfs "${jail_path}"; then
create_inc_btrfs "${jail_name}" "${inc_name}"
@ -68,7 +70,7 @@ for jail_name in ${jails_list}; do
create_inc_ext4 "${jail_name}" "${inc_name}"
fi
notice "Create inc '${inc_name}' for jail '${jail_name}' : finish"
info "Create inc '${inc_name}' for jail '${jail_name}' : finish"
else
warning "Skip inc '${inc_name}' for jail '${jail_name}' : it already exists."
fi
@ -76,3 +78,5 @@ for jail_name in ${jails_list}; do
notice "Skip jail '${jail_name}' : incs policy is missing"
fi
done
notice "Finished creating incs (name: ${inc_name}) for ${jails_total} jails"