                                       ["id=?" component-id])
             nil ; return value
             (catch Exception e
-                (println e)
-                e))))
-
+                (log/error e)
+                e))))
+

        (jdbc/query db-spec/hurvinek-db
                        ["select id, name from groups where chapter=? order by name" chapter-id])
        (catch Exception e
            (println e)
            nil)))

(defn read-groups-per-chapter

                                     :description description} ["id=?" product-id])
            nil ; return value
            (catch Exception e
                (log/error e)
                e))))

(defn add-new-chapter
