summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-11-15 01:39:54 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2015-11-15 01:39:54 (GMT)
commit0a1a1ce51c704bb1c06e0a9dd19af53910113003 (patch)
treefabcda0cf87a2fbca943f06b51979eaa1372ff39
parent6c0e31be341f5733144bb0322d55b351ae227f27 (diff)
parent6744ff68e4dbcb6456d7b9ef054c3ed114eabc2e (diff)
Merge pull request #255 from stilor/savestate-logging
cosmetic: Do not log state saving/restoring as ERROR.
-rw-r--r--scripts/functions6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/functions b/scripts/functions
index f09df54..660e084 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -1354,8 +1354,7 @@ CT_DoSaveState() {
local state_name="$1"
local state_dir="${CT_STATE_DIR}/${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}'..."
+ CT_DoLog INFO "Saving state to restart at step '${state_name}'..."
rm -rf "${state_dir}"
mkdir -p "${state_dir}"
@@ -1401,8 +1400,7 @@ CT_DoLoadState(){
exec >"${state_dir}/tail.log"
fi
- # Log this to the log level required by the user
- CT_DoLog ${CT_LOG_LEVEL_MAX} "Restoring state at step '${state_name}', as requested."
+ CT_DoLog INFO "Restoring state at step '${state_name}', as requested."
CT_DoExtractTarballIfExists "${state_dir}/prefix_dir" "${CT_PREFIX_DIR}"
CT_DoExtractTarballIfExists "${state_dir}/config_dir" "${CT_CONFIG_DIR}"