Update logger to not log binary content

This line fails on php `5.3`