diff --git a/CHANGES b/CHANGES index 5b4dcedcb..2ab98f9b3 100644 --- a/CHANGES +++ b/CHANGES @@ -2603,3 +2603,5 @@ * Add porkbun dns provider * Initial OpenID integration * dyndns: update dynamic dns of apps that are updating +* logs: order existing logs by date + diff --git a/src/scripts/logtail.sh b/src/scripts/logtail.sh index 7c0b6b974..399a231d5 100755 --- a/src/scripts/logtail.sh +++ b/src/scripts/logtail.sh @@ -17,4 +17,7 @@ while true; do esac done -exec tail ${follow} --lines=${lines} "$@" \ No newline at end of file +# first sort the existing log lines +tail --quiet --lines=${lines} -- "$@" | sort -k1 + +exec tail ${follow} --lines=0 "$@" \ No newline at end of file