diff --git a/www/log.html b/www/log.html index 138b03f4..0eb1c4f3 100644 --- a/www/log.html +++ b/www/log.html @@ -87,7 +87,7 @@ function applyLogStyling(jsonlines) { const KEYS = ['time', 'level', 'message']; - const lines = JSON.parse('[' + jsonlines.trimEnd().replaceAll('\n', ',') + ']'); + const lines = JSON.parse('[' + jsonlines.trimEnd().replaceAll('\n', ',') + ']').reverse(); return lines.map(line => { const ts = new Date(line['time']); const msg = Object.keys(line).reduce((msg, key) => { @@ -127,4 +127,4 @@ }, 5000); - \ No newline at end of file +