🐛 Fix unexpected exception on pprint error.

This commit is contained in:
Andrey Antukh 2021-01-19 16:33:32 +01:00
parent 4e43bf5f78
commit 412a3c923b
2 changed files with 12 additions and 6 deletions

View file

@ -29,10 +29,12 @@
:public-uri "http://localhost:3449/" :public-uri "http://localhost:3449/"
:redis-uri "redis://localhost/0" :redis-uri "redis://localhost/0"
:storage-backend :fs
:storage-fs-old-directory "resources/public/media" :storage-fs-old-directory "resources/public/media"
:storage-fs-directory "resources/public/assets" :storage-fs-directory "resources/public/assets"
:storage-fs-uri "http://localhost:3449/internal/assets/" :storage-fs-uri "http://localhost:3449/internal/assets/"
:storage-s3-region :eu-central-1 :storage-s3-region :eu-central-1
:storage-s3-bucket "penpot-devenv-assets-pre"
:image-process-max-threads 2 :image-process-max-threads 2
@ -223,7 +225,3 @@
(def default-deletion-delay (def default-deletion-delay
(dt/duration {:hours 48})) (dt/duration {:hours 48}))
(prefer-method print-method
clojure.lang.IRecord
clojure.lang.IDeref)

View file

@ -12,11 +12,12 @@
[app.config :as cfg] [app.config :as cfg]
[app.common.data :as d] [app.common.data :as d]
[app.util.time :as dt] [app.util.time :as dt]
[clojure.pprint :as pprint]
[clojure.tools.logging :as log] [clojure.tools.logging :as log]
[integrant.core :as ig])) [integrant.core :as ig]))
;; Set value for all new threads bindings. ;; Set value for all new threads bindings.
(alter-var-root #'*assert* (constantly (:assets-enabled cfg/config))) (alter-var-root #'*assert* (constantly (:asserts-enabled cfg/config)))
(derive :app.telemetry/server :app.http/server) (derive :app.telemetry/server :app.http/server)
@ -85,7 +86,6 @@
:svgparse (ig/ref :app.svgparse/handler) :svgparse (ig/ref :app.svgparse/handler)
:storage (ig/ref :app.storage/storage)} :storage (ig/ref :app.storage/storage)}
:app.svgparse/svgc :app.svgparse/svgc
{:metrics (ig/ref :app.metrics/metrics)} {:metrics (ig/ref :app.metrics/metrics)}
@ -299,6 +299,14 @@
(when sys (ig/halt! sys)) (when sys (ig/halt! sys))
nil))) nil)))
(prefer-method print-method
clojure.lang.IRecord
clojure.lang.IDeref)
(prefer-method pprint/simple-dispatch
clojure.lang.IPersistentMap
clojure.lang.IDeref)
(defn -main (defn -main
[& _args] [& _args]
(start)) (start))