From bbef41ab986f25585a48e64f87daa901bf69c36f Mon Sep 17 00:00:00 2001 From: Ryan Schmukler Date: Thu, 10 Jun 2021 18:14:12 -0400 Subject: [PATCH] fix: use clojure println log Evidently the `.println` method doesn't work with some version of Clojure. Switches to rebinding *out* to *err* and logging via `println`. Closes #4 --- .gitignore | 1 + src/teknql/tailwind.clj | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 93f4401..9dacc17 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .cpcache /pom.xml /target/ +/.nrepl-port diff --git a/src/teknql/tailwind.clj b/src/teknql/tailwind.clj index 12e3b18..dd2cabd 100644 --- a/src/teknql/tailwind.clj +++ b/src/teknql/tailwind.clj @@ -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."