From 0e4c0c8815b4fba9b3d619dead685954a0f56faf Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 24 Mar 2009 17:37:52 +0000 Subject: Log the save/restore messages at a level that is always visible. /trunk/scripts/functions | 7 5 2 0 +++++-- 1 file 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;; -- cgit v0.10.2-6-g49f6