mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 13:23:08 +00:00
Merge pull request #255 from stilor/savestate-logging
cosmetic: Do not log state saving/restoring as ERROR.
This commit is contained in:
commit
0a1a1ce51c
@ -1354,8 +1354,7 @@ CT_DoSaveState() {
|
|||||||
local state_name="$1"
|
local state_name="$1"
|
||||||
local state_dir="${CT_STATE_DIR}/${state_name}"
|
local state_dir="${CT_STATE_DIR}/${state_name}"
|
||||||
|
|
||||||
# Log this to the log level required by the user
|
CT_DoLog INFO "Saving state to restart at step '${state_name}'..."
|
||||||
CT_DoLog ${CT_LOG_LEVEL_MAX} "Saving state to restart at step '${state_name}'..."
|
|
||||||
|
|
||||||
rm -rf "${state_dir}"
|
rm -rf "${state_dir}"
|
||||||
mkdir -p "${state_dir}"
|
mkdir -p "${state_dir}"
|
||||||
@ -1401,8 +1400,7 @@ CT_DoLoadState(){
|
|||||||
exec >"${state_dir}/tail.log"
|
exec >"${state_dir}/tail.log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Log this to the log level required by the user
|
CT_DoLog INFO "Restoring state at step '${state_name}', as requested."
|
||||||
CT_DoLog ${CT_LOG_LEVEL_MAX} "Restoring state at step '${state_name}', as requested."
|
|
||||||
|
|
||||||
CT_DoExtractTarballIfExists "${state_dir}/prefix_dir" "${CT_PREFIX_DIR}"
|
CT_DoExtractTarballIfExists "${state_dir}/prefix_dir" "${CT_PREFIX_DIR}"
|
||||||
CT_DoExtractTarballIfExists "${state_dir}/config_dir" "${CT_CONFIG_DIR}"
|
CT_DoExtractTarballIfExists "${state_dir}/config_dir" "${CT_CONFIG_DIR}"
|
||||||
|
Loading…
Reference in New Issue
Block a user