summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--THANKS1
-rw-r--r--share/server/util.js6
2 files changed, 5 insertions, 2 deletions
diff --git a/THANKS b/THANKS
index 6472bb1a..bd91f7ed 100644
--- a/THANKS
+++ b/THANKS
@@ -66,5 +66,6 @@ suggesting improvements or submitting changes. Some of these people are:
* Lim Yue Chuan <shasderias@gmail.com>
* David Davis <xantus@xantus.org>
* Dale Harvey <dale@arandomurl.com>
+ * Benjamin Young <byoung@bigbluehat.com>
For a list of authors see the `AUTHORS` file.
diff --git a/share/server/util.js b/share/server/util.js
index 77b934ed..a5dfa127 100644
--- a/share/server/util.js
+++ b/share/server/util.js
@@ -117,8 +117,10 @@ function respond(obj) {
function log(message) {
// idea: query_server_config option for log level
- if (typeof message != "string") {
+ if (typeof message == "xml") {
+ message = message.toXMLString();
+ } else if (typeof message != "string") {
message = Couch.toJSON(message);
}
- respond(["log", message]);
+ respond(["log", String(message)]);
};