Skip to content

Commit

Permalink
fix: use clojure println log
Browse files Browse the repository at this point in the history
Evidently the `.println` method doesn't work with some version of Clojure.

Switches to rebinding *out* to *err* and logging via `println`.

Closes #4
  • Loading branch information
rschmukler committed Jun 10, 2021
1 parent 7a3d70b commit bbef41a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.cpcache
/pom.xml
/target/
/.nrepl-port
3 changes: 2 additions & 1 deletion src/teknql/tailwind.clj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"Log the provided `strs` to stderr with a prefix determined by the build ID
of the passed in `build-cfg`."
[build-cfg & strs]
(.println *err* (apply str "[" (:build-id build-cfg) "] " strs)))
(binding [*out* *err*]
(println (apply str "[" (:build-id build-cfg) "] " strs))))

(defn- cfg-get
"Behaves identical to `get` but logs the default value back to the user."
Expand Down

0 comments on commit bbef41a

Please sign in to comment.