Display diagnostics in text format for xhr request