From 028e1bd162ecffd01d0573f3f5bc6c401d98a00a Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sun, 20 Sep 2020 23:31:41 +0200 Subject: [PATCH] [#556] Support disabling warning via *err* --- feature-httpkit-server/babashka/impl/httpkit_server.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature-httpkit-server/babashka/impl/httpkit_server.clj b/feature-httpkit-server/babashka/impl/httpkit_server.clj index 46bcdbdc..2ff699d8 100644 --- a/feature-httpkit-server/babashka/impl/httpkit_server.clj +++ b/feature-httpkit-server/babashka/impl/httpkit_server.clj @@ -11,7 +11,7 @@ This namespace will remain available under a feature flag, see https://github.co (def sns (sci/create-ns 'org.httpkit.server {:sci.impl/required-fn (fn [_] (when-not (= "false" (System/getProperty "babashka.httpkit-server.warning")) - (binding [*out* *err*] + (binding [*out* @sci/err] (println warning))))})) (def httpkit-server-namespace