             first
             (get what))
         (catch Exception e
-            (println e)
+            (log/error e)
             nil)))
 
 (defn read-product-name

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

(defn read-components-for-chapter

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

(defn read-groups-per-chapter
