0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 22:22:43 -05:00

Make frontend app setup logging message more easy to be read

Mainly printing flag per line, making it more easily for human eye look
if some feature is active or not
This commit is contained in:
Andrey Antukh 2025-01-20 12:30:30 +01:00
parent 667b5fb6ee
commit 089a66881c

View file

@ -30,20 +30,21 @@
[app.util.i18n :as i18n] [app.util.i18n :as i18n]
[app.util.theme :as theme] [app.util.theme :as theme]
[beicon.v2.core :as rx] [beicon.v2.core :as rx]
[cuerdas.core :as str]
[debug] [debug]
[features] [features]
[potok.v2.core :as ptk] [potok.v2.core :as ptk]
[rumext.v2 :as mf])) [rumext.v2 :as mf]))
(log/setup! {:app :info}) (log/setup! {:app :info})
(log/set-level! :debug)
(when (= :browser cf/target) (when (= :browser cf/target)
(log/info :version (:full cf/version) (log/inf :version (:full cf/version)
:asserts *assert* :asserts *assert*
:build-date cf/build-date :build-date cf/build-date
:public-uri (dm/str cf/public-uri)) :public-uri (dm/str cf/public-uri))
(log/info :flags (str/join "," (map name cf/flags)))) (doseq [flag cf/flags]
(log/dbg :hint "flag enabled" :flag (name flag))))
(declare reinit) (declare reinit)