From 17229228a3816877b9f15ff88290b59c4b50b93e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 11 Feb 2021 17:55:57 +0100 Subject: [PATCH] :sparkles: Add initialization logging to connection pool. --- backend/src/app/db.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/app/db.clj b/backend/src/app/db.clj index 1fcb18e47..99e4da7d2 100644 --- a/backend/src/app/db.clj +++ b/backend/src/app/db.clj @@ -19,6 +19,7 @@ [app.util.transit :as t] [clojure.java.io :as io] [clojure.spec.alpha :as s] + [clojure.tools.logging :as log] [integrant.core :as ig] [next.jdbc :as jdbc] [next.jdbc.date-time :as jdbc-dt]) @@ -55,6 +56,7 @@ (defmethod ig/init-key ::pool [_ {:keys [migrations] :as cfg}] + (log/debugf "initialize connection pool %s with uri %s" (:name cfg) (:uri cfg)) (let [pool (create-pool cfg)] (when (seq migrations) (with-open [conn (open pool)]