Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace usages of io.aviso/pretty with org.clj-commons/pretty #381

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

:dependencies
[[com.taoensso/encore "3.68.0"]
[io.aviso/pretty "1.4.4"]]
[org.clj-commons/pretty "2.2.1"]]

:profiles
{;; :default [:base :system :user :provided :dev]
Expand Down
12 changes: 6 additions & 6 deletions src/taoensso/timbre.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[taoensso.encore :as enc :refer [have have?]]
[taoensso.timbre.appenders.core :as core-appenders]

#?(:clj [io.aviso.exception :as aviso-ex])
#?(:clj [clj-commons.format.exceptions :as pretty-ex])
#?(:cljs [goog.i18n.DateTimeFormat :as dtf]))

#?(:cljs (:require-macros [taoensso.timbre])))
Expand Down Expand Up @@ -499,9 +499,9 @@
generate output for `:?err` value in log data.

For Clj:
Uses `io.aviso/pretty` to return an attractive stacktrace.
Uses `org.clj-commons/pretty` to return an attractive stacktrace.
Options:
:stacktrace-fonts ; See `io.aviso.exception/*fonts*`
:stacktrace-fonts ; See `clj-commons.format.exceptions/*fonts*`

For Cljs:
Returns simple stacktrace string."
Expand Down Expand Up @@ -531,9 +531,9 @@
default-stacktrace-fonts)]

(if-let [fonts stacktrace-fonts]
(binding [aviso-ex/*fonts* fonts]
(do (aviso-ex/format-exception err)))
(do (aviso-ex/format-exception err)))))))
(binding [pretty-ex/*fonts* fonts]
(do (pretty-ex/format-exception err)))
(do (pretty-ex/format-exception err)))))))

(comment
(default-output-error-fn
Expand Down
1 change: 0 additions & 1 deletion src/taoensso/timbre/appenders/postal.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
[clojure.string :as str]
[taoensso.encore :as enc :refer [have have?]]
[taoensso.timbre :as timbre]
[io.aviso.exception :as aviso-ex]
[postal.core :as postal]))

(defn default-subject-fn
Expand Down
1 change: 1 addition & 0 deletions wiki/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
5 changes: 5 additions & 0 deletions wiki/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Attention!

This wiki is designed for viewing from [here](../../../wiki)!

Viewing from GitHub's file browser will result in **broken links**.