use echo instead of printf -> problems with %

This commit is contained in:
Gerhard Hoffmann 2022-06-03 21:46:55 +02:00
parent 9ceabd922d
commit eb122ed51f

View File

@ -35,8 +35,8 @@ if [ "${log_helpers_sourced:-1}" = "1" ]; then # include only once
sed -e 1d -i $log_file
fi
local msg="$(date +'%Y-%m-%d_%T'): $*"
printf "log:$msg\n" >&2
printf "$msg\n" >> $log_file
echo "log:$msg" >&2
echo "$msg" >> $log_file
}
log_debug() {