   [oracle-store]
   (let [db-health (health oracle-store)]
     (when-not (:ok? db-health)
+      (error (str "Could not get successful health from oracle store: "
+                  (db-conn-info-safe-for-logging oracle-store)))
       (throw (Exception. (:problem db-health))))))
 
 (defn db->oracle-conn

      {:ok? true}
      {:ok? false :problem "Could not select data from database."})
    (catch Exception e
      (info "Database conn info" (pr-str (-> oracle-store
                                             :spec
                                             (assoc :password "*****"))))
      {:ok? false :problem (.getMessage e)})))

(defn health

   :fcf-enabled fcf-enabled
   :ons-config ons-config})

(defn- db-conn-info-safe-for-logging
  "Returns the database connection info without password details"
  [oracle-store]
  (pr-str (-> oracle-store
              :spec
              (assoc :password "*****"))))

(defn health-fn
  "Returns the health status of the database by executing some sql."
