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
1 changed files with 3 additions and 1 deletions
4
script
4
script
|
|
@ -77,7 +77,9 @@ log() {
|
|||
esac
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue