Log the save/restore messages at a level that is always visible.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Mar 24 17:37:52 2009 +0000 (2009-03-24)
changeset 12665e5910270991
parent 1265 d00c858f044f
child 1267 ca485f06bfa7
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(-)
scripts/functions
     1.1 --- a/scripts/functions	Mon Mar 23 23:35:36 2009 +0000
     1.2 +++ b/scripts/functions	Tue Mar 24 17:37:52 2009 +0000
     1.3 @@ -818,7 +818,8 @@
     1.4      local state_name="$1"
     1.5      local state_dir="${CT_STATE_DIR}/${state_name}"
     1.6  
     1.7 -    CT_DoLog DEBUG "Saving state to restart at step '${state_name}'..."
     1.8 +    # Log this to the log level required by the user
     1.9 +    CT_DoLog ${CT_LOG_LEVEL_MAX} "Saving state to restart at step '${state_name}'..."
    1.10  
    1.11      rm -rf "${state_dir}"
    1.12      mkdir -p "${state_dir}"
    1.13 @@ -881,7 +882,9 @@
    1.14      if [ "${CT_LOG_TO_FILE}" = "y" ]; then
    1.15          exec >"${state_dir}/tail.log"
    1.16      fi
    1.17 -    CT_DoLog INFO "Restoring state at step '${state_name}', as requested."
    1.18 +
    1.19 +    # Log this to the log level required by the user
    1.20 +    CT_DoLog ${CT_LOG_LEVEL_MAX} "Restoring state at step '${state_name}', as requested."
    1.21  
    1.22      case "${CT_DEBUG_CT_SAVE_STEPS_GZIP}" in
    1.23          y)  tar_opt=z; tar_ext=.gz;;