I think we also want to split on newlines and iterate over them. Otherwise you might get a really long stracktrace that's broken up in the middle of one of its lines.