Debug logging

This commit is contained in:
Teemu Patja 2017-02-23 13:48:11 +02:00
parent b112155134
commit 9cb1028c16
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 4 additions and 2 deletions

View File

@ -36,8 +36,10 @@
(sh command "-f" "png" "--quality" "80" "--width" "1336" "-" "-" (sh command "-f" "png" "--quality" "80" "--width" "1336" "-" "-"
:out-enc :bytes :in html)] :out-enc :bytes :in html)]
(if (= 0 exit) (if (= 0 exit)
out (do
(do (log/error "Failed to generate PNG file" err exit out) (log/debug "PNG generated succesfully" out err exit html)
out)
(do (log/error "Failed to generate PNG file" err exit out html)
nil)))) nil))))