Formatting in logging code
Fix logging so we don't get WARNING: WARNING: and ERROR: ERROR: