From 0fe0ec37083dd45f829431f3493f74ac307dffd1 Mon Sep 17 00:00:00 2001 From: Edward Lee Date: Thu, 9 Jul 2009 17:44:41 -0700 Subject: [PATCH] Strip newline from various debug output. --- modules/faultTolerance.js | 2 +- modules/resource.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/faultTolerance.js b/modules/faultTolerance.js index 124f43c3..d0766dbb 100644 --- a/modules/faultTolerance.js +++ b/modules/faultTolerance.js @@ -64,7 +64,7 @@ FTService.prototype = { onException: function FTS_onException(exception) { this._lastException = exception; - this._log.debug("\n" + Utils.stackTrace(exception)); + this._log.debug(Utils.stackTrace(exception)); return true; // continue sync if thrown by a sync engine } }; diff --git a/modules/resource.js b/modules/resource.js index c2db2151..6b1cc745 100644 --- a/modules/resource.js +++ b/modules/resource.js @@ -253,7 +253,7 @@ Resource.prototype = { // they have payload data. if ("PUT" == action || "POST" == action) { this.filterUpload(); - this._log.trace(action + " Body:\n" + this._data); + this._log.trace(action + " Body: " + this._data); let type = ('Content-Type' in this._headers)? this._headers['Content-Type'] : 'text/plain'; @@ -276,7 +276,7 @@ Resource.prototype = { if (!channel.requestSucceeded) { this._log.debug(action + " request failed (" + channel.responseStatus + ")"); if (this._data) - this._log.debug("Error response: \n" + this._data); + this._log.debug("Error response: " + this._data); throw new RequestException(this, action, channel); } else { @@ -291,7 +291,7 @@ Resource.prototype = { break; case "GET": case "POST": - this._log.trace(action + " Body:\n" + this._data); + this._log.trace(action + " Body: " + this._data); this.filterDownload(); break; }