summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-24 17:37:52 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-24 17:37:52 (GMT)
commit0e4c0c8815b4fba9b3d619dead685954a0f56faf (patch)
tree45ba2bcb8295b0160033bcdddd37b5c550f72614
parent37d19f8954351149f9d61ff3d2d5d1dd2b0a1f95 (diff)
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(-)
-rw-r--r--scripts/functions7
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;;