Fix vault debug
so that captured logs include newlines.
#12175
Merged
vault debug
so that captured logs include newlines.
#12175