Minor formatting update to follow PSR-2 style

And fix to handle non-text data sent to the error logging function