add time for each line of a log message
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
02603c84b4
commit
926d7d27ed
4
script
4
script
|
@ -77,7 +77,9 @@ log() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ $LEVEL -ge $LOG_VERBOSE_VALUE ]; then
|
if [ $LEVEL -ge $LOG_VERBOSE_VALUE ]; then
|
||||||
printf "%s%s%s\n" "${COLOR:-}" "${TIME:-}" "$*" >&2
|
printf "%s" "$*" | while IFS='' read -r LINE; do
|
||||||
|
printf "%s%s%s\n" "${COLOR:-}" "${TIME:-}" "$LINE" >&2
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue