Katello/katello — pull request #850 by xsuchy (2012-10-15 09:47:13+00:00)
Title: 866323 - do not print binary files to log

if file is binary (e.g pdf file) then do not try to convert it to unicode
and print it to log file
additionally execute this part of code only if logging level is set to DEBUG.