diff options
-rw-r--r-- | scripts/functions | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions index cafc6b2..b9f6d65 100644 --- a/scripts/functions +++ b/scripts/functions @@ -818,7 +818,8 @@ CT_DoSaveState() { local state_name="$1" local state_dir="${CT_STATE_DIR}/${state_name}" - CT_DoLog DEBUG "Saving state to restart at step '${state_name}'..." + # Log this to the log level required by the user + CT_DoLog ${CT_LOG_LEVEL_MAX} "Saving state to restart at step '${state_name}'..." rm -rf "${state_dir}" mkdir -p "${state_dir}" @@ -881,7 +882,9 @@ CT_DoLoadState(){ if [ "${CT_LOG_TO_FILE}" = "y" ]; then exec >"${state_dir}/tail.log" fi - CT_DoLog INFO "Restoring state at step '${state_name}', as requested." + + # Log this to the log level required by the user + CT_DoLog ${CT_LOG_LEVEL_MAX} "Restoring state at step '${state_name}', as requested." case "${CT_DEBUG_CT_SAVE_STEPS_GZIP}" in y) tar_opt=z; tar_ext=.gz;; |