From 9cb1028c162bc70bed70bc89e24a166dd810e75a Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Thu, 23 Feb 2017 13:48:11 +0200 Subject: [PATCH] Debug logging --- src/clj/commiteth/util/png_rendering.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/clj/commiteth/util/png_rendering.clj b/src/clj/commiteth/util/png_rendering.clj index 430ab0f..a0c0807 100644 --- a/src/clj/commiteth/util/png_rendering.clj +++ b/src/clj/commiteth/util/png_rendering.clj @@ -36,8 +36,10 @@ (sh command "-f" "png" "--quality" "80" "--width" "1336" "-" "-" :out-enc :bytes :in html)] (if (= 0 exit) - out - (do (log/error "Failed to generate PNG file" err exit out) + (do + (log/debug "PNG generated succesfully" out err exit html) + out) + (do (log/error "Failed to generate PNG file" err exit out html) nil))))