truncating stacktraces when they are bigger than 1000 lines