use echo instead of printf -> problems with %
This commit is contained in:
parent
9ceabd922d
commit
eb122ed51f
@ -35,8 +35,8 @@ if [ "${log_helpers_sourced:-1}" = "1" ]; then # include only once
|
|||||||
sed -e 1d -i $log_file
|
sed -e 1d -i $log_file
|
||||||
fi
|
fi
|
||||||
local msg="$(date +'%Y-%m-%d_%T'): $*"
|
local msg="$(date +'%Y-%m-%d_%T'): $*"
|
||||||
printf "log:$msg\n" >&2
|
echo "log:$msg" >&2
|
||||||
printf "$msg\n" >> $log_file
|
echo "$msg" >> $log_file
|
||||||
}
|
}
|
||||||
|
|
||||||
log_debug() {
|
log_debug() {
|
||||||
|
Loading…
Reference in New Issue
Block a user