From ec817d3c0f70fc2e1dd29c98195728b4dd20d43e Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 19 Jun 2011 13:36:40 -0700 Subject: [PATCH] prettier discovery debug output Change-Id: I6a3a8e9370526dc0fd550d09a737844c7f32f767 --- server/go/camlistored/ui/disco.html | 2 +- server/go/camlistored/ui/sigdebug.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/go/camlistored/ui/disco.html b/server/go/camlistored/ui/disco.html index ce293731d..1c84d9c55 100644 --- a/server/go/camlistored/ui/disco.html +++ b/server/go/camlistored/ui/disco.html @@ -16,7 +16,7 @@ function discover() { return; } disco = JSON.parse(xhr.responseText); - document.getElementById("discores").innerHTML = JSON.stringify(disco); + document.getElementById("discores").innerHTML = "
" + JSON.stringify(disco, null, 2) + "
"; }; xhr.open("GET", "./?camli.mode=config", true); xhr.send(); diff --git a/server/go/camlistored/ui/sigdebug.js b/server/go/camlistored/ui/sigdebug.js index fab3a5232..fa6597e65 100644 --- a/server/go/camlistored/ui/sigdebug.js +++ b/server/go/camlistored/ui/sigdebug.js @@ -9,7 +9,7 @@ function discoverJsonSign() { return; } sigdisco = JSON.parse(xhr.responseText); - document.getElementById("sigdiscores").innerHTML = JSON.stringify(sigdisco); + document.getElementById("sigdiscores").innerHTML = "
" + JSON.stringify(sigdisco, null, 2) + "
"; }; xhr.open("GET", disco.jsonSignRoot + "/camli/sig/discovery", true); xhr.send();