Strip newline from various debug output.

This commit is contained in:
Edward Lee 2009-07-09 17:44:41 -07:00
parent 0d43caf465
commit a8ef74db89
2 changed files with 4 additions and 4 deletions

View File

@ -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
}
};

View File

@ -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;
}