From 59a60aa261f8c9d81b273d1259ec4499b5e7a95b Mon Sep 17 00:00:00 2001 From: kagel Date: Wed, 14 Sep 2016 15:55:52 +0300 Subject: [PATCH] replace println with log --- src/clj/commiteth/github/core.clj | 4 ++-- src/clj/commiteth/routes/services.clj | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/clj/commiteth/github/core.clj b/src/clj/commiteth/github/core.clj index 4318712..ac0fc6c 100644 --- a/src/clj/commiteth/github/core.clj +++ b/src/clj/commiteth/github/core.clj @@ -78,7 +78,7 @@ (defn add-webhook [token user repo] - (println "adding webhook") + (log/debug "adding webhook") (repos/create-hook user repo "web" {:url (str (server-address) "/webhook") :content_type "json"} @@ -88,7 +88,7 @@ (defn remove-webhook [token user repo hook-id] - (println "removing webhook") + (log/debug "removing webhook") (repos/delete-hook user repo hook-id (auth-params token))) (defn github-comment-hash diff --git a/src/clj/commiteth/routes/services.clj b/src/clj/commiteth/routes/services.clj index 1c384ca..912f46c 100644 --- a/src/clj/commiteth/routes/services.clj +++ b/src/clj/commiteth/routes/services.clj @@ -8,7 +8,8 @@ [commiteth.db.users :as users] [commiteth.db.repositories :as repositories] [commiteth.db.bounties :as bounties] - [commiteth.github.core :as github])) + [commiteth.github.core :as github] + [clojure.tools.logging :as log])) (defn access-error [_ _] (unauthorized {:error "unauthorized"})) @@ -75,7 +76,7 @@ (if (:enabled result) ;; @todo: do we really want to make this call at this moment? (let [created-hook (github/add-webhook token login repo)] - (println created-hook) + (log/debug "Created webhook:" created-hook) (github/create-label login repo token) (repositories/update-hook-id repo-id (:id created-hook))) (github/remove-webhook token login repo (:hook_id result)))