explicitly call to_s when logging exception