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

                           :description description})
            nil ; return value
            (catch Exception e
                (println e)
                e))))

(defn update-product

                           :name    chapter-name})
            nil ; return value
            (catch Exception e
                (log/error e)
                e))))

(defn update-chapter
