updates to logger to accommodate for non json responses

@darbyfrey