From a71c8a938c271cd90172765cbf361f9a0efb5d85 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 16 Sep 2025 18:55:52 +0800 Subject: [PATCH] fix: log display --- src/main/mobile/components/header.cljs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/mobile/components/header.cljs b/src/main/mobile/components/header.cljs index 91150a0974..df7a804185 100644 --- a/src/main/mobile/components/header.cljs +++ b/src/main/mobile/components/header.cljs @@ -114,8 +114,8 @@ :on-click (fn [] (set-error-only! (not error-only?)))} (if error-only? - "Show all" - "Show errors only")) + "All" + "Errors only")) (shui/button {:size :sm @@ -130,8 +130,8 @@ :on-click (fn [] (set-show-worker-log! (not show-worker-log?)))} (if show-worker-log? - "Show UI logs" - "Show worker logs"))] + "UI logs" + "worker logs"))] (let [records (cond->> (if show-worker-log? worker-records @mobile-state/*log) error-only? @@ -140,7 +140,7 @@ reverse)] [:ul (for [record records] - [:li (:message record)])])])) + [:li (str (:level record) " " (:message record))])])])) (rum/defc header [tab login?]