scripts/functions
changeset 1266 5e5910270991
parent 1258 67daa585467b
child 1271 f96f26d4a855
     1.1 --- a/scripts/functions	Sun Mar 15 20:06:40 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;;