Add more logging for debugging CI flakiness

We could assign this regexp once, as it is used twice.