small logger update

This commit is contained in:
accel 2021-12-20 17:34:28 +03:00
parent 8fa0c6b8fc
commit 8e418f681a

View File

@ -24,7 +24,7 @@ function zshlibs_update()
pushd $zshlibs_install 2>&1 > /dev/null
zbootstrap_message zlibs_update "git pull …"
(
git pull 2>&1 > "${HOME}/.log/z_zshlibs_update" &
git pull 2>&1 |zbootstrap_message zlibs_update & # > "${HOME}/.log/z_zshlibs_update" &
)
zbootstrap_message zlibs_update "update done"
popd 2>&1 > /dev/null
@ -100,7 +100,7 @@ function zconfig_checkload()
if [[ ! ${zconfig_loaded[(r)${1}]} ]]
then
zbootstrap_message zbootstrap "sourcing config '$1'"
source -- $1 2>&1 >> "${HOME}/.log/z_zbootstrap.log"
source -- $1 2>&1 | zbootstrap_message zbootstrap # >> "${HOME}/.log/z_zbootstrap.log"
zconfig_loaded+=("$1")
zbootstrap_message zbootstrap "end sourcing config '$1'"
else
@ -135,7 +135,12 @@ function zbootstrap_message()
{
local facility=$1
shift
if [[ -n "${@}" ]]
then
echo "$(date -Ins) ${@}" >> "${HOME}/.log/z_$facility.log"
else
echo "$(date -Ins) $(cat)" >> "${HOME}/.log/z_$facility.log"
fi
}
function zshlibs_boot()