From 7b927c06fd1bb777057eb8e708354e5633c8a828 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sat, 2 Oct 2021 13:53:42 -0300 Subject: Print port being used --- src/ruuter/core.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ruuter/core.clj b/src/ruuter/core.clj index 1cf96cb..b441b1f 100644 --- a/src/ruuter/core.clj +++ b/src/ruuter/core.clj @@ -94,9 +94,10 @@ (defn route! "Starts an HTTP server which will then try to find a matching route for each request from within the given collection of `routes`. Takes an - optional `opts` map, which corresponds directly to HTTP-Kit's config, + optional `opts` map, which corresponds directly to http-kit's config, allowing you to specify things like `{:port 8080}` and so on." ([routes] (route! routes {:port 9600})) ([routes opts] + (println "Starting HTTP server on port " (:port opts)) (http/run-server #(router routes %) opts))) \ No newline at end of file -- cgit v1.2.3