Skip to content

Commit 01987eb

Browse files
committed
refact+fix: dialogs and hostname
1 parent aa1255d commit 01987eb

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎system/cuos/dialog-reports.sh‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ change_vt
2424
--boot=all \
2525
--no-pager \
2626
--output=json | jq --unbuffered -r '
27-
. as $e
28-
| (($e.__REALTIME_TIMESTAMP | tonumber) / 1000000 | strflocaltime("%Y-%m-%d %H:%M:%S")) + " [" +
29-
(["emerg","alert","crit","err","warning","notice","info","debug"][$e.PRIORITY | tonumber]) + "] " +
27+
. as $e |
28+
(if ($e.MESSAGE | test("^cuos:init:start")) then "\n" else "" end) +
29+
(($e.__REALTIME_TIMESTAMP | tonumber) / 1000000 | strflocaltime("%Y-%m-%d %H:%M:%S")) +
30+
" " +
31+
(["[emerg]","[alert]","[crit] ","[err] ","[warning]","[notice]","[info] ","[debug]"][$e.PRIORITY | tonumber]) +
32+
" " +
3033
$e.MESSAGE
3134
' > "$tmpfile" &
3235
JOURNAL_PID=$!

0 commit comments

Comments
 (0)