Skip to content

Commit

Permalink
always log to STDERR from datahike.cli (#702)
Browse files Browse the repository at this point in the history
Co-authored-by: Coby Tamayo <coby@tamayo.email>
  • Loading branch information
acobster and Coby Tamayo authored Sep 25, 2024
1 parent b249842 commit 2ebb58e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/datahike/cli.clj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@

;; This file is following https://github.com/clojure/tools.cli

(log/merge-config!
{:appenders {:println {:doc "Always prints to *err*"
:enabled? true
:fn (fn log-to-stderr [{:keys [output_]}]
(binding [*out* *err*]
(println (force output_))))}}})

(defn usage [options-summary]
(->> [datahike-logo
"This is the Datahike command line interface."
Expand Down

0 comments on commit 2ebb58e

Please sign in to comment.