small logger update
This commit is contained in:
parent
8fa0c6b8fc
commit
8e418f681a
@ -24,7 +24,7 @@ function zshlibs_update()
|
|||||||
pushd $zshlibs_install 2>&1 > /dev/null
|
pushd $zshlibs_install 2>&1 > /dev/null
|
||||||
zbootstrap_message zlibs_update "git pull …"
|
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"
|
zbootstrap_message zlibs_update "update done"
|
||||||
popd 2>&1 > /dev/null
|
popd 2>&1 > /dev/null
|
||||||
@ -100,7 +100,7 @@ function zconfig_checkload()
|
|||||||
if [[ ! ${zconfig_loaded[(r)${1}]} ]]
|
if [[ ! ${zconfig_loaded[(r)${1}]} ]]
|
||||||
then
|
then
|
||||||
zbootstrap_message zbootstrap "sourcing config '$1'"
|
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")
|
zconfig_loaded+=("$1")
|
||||||
zbootstrap_message zbootstrap "end sourcing config '$1'"
|
zbootstrap_message zbootstrap "end sourcing config '$1'"
|
||||||
else
|
else
|
||||||
@ -135,7 +135,12 @@ function zbootstrap_message()
|
|||||||
{
|
{
|
||||||
local facility=$1
|
local facility=$1
|
||||||
shift
|
shift
|
||||||
echo "$(date -Ins) ${@}" >> "${HOME}/.log/z_$facility.log"
|
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()
|
function zshlibs_boot()
|
||||||
|
Loading…
Reference in New Issue
Block a user