From aa0b315b4b93760d54f5f137913fb9b705ae96a2 Mon Sep 17 00:00:00 2001 From: "jeffcon@google.com" Date: Wed, 19 Dec 2012 18:52:58 +0000 Subject: [PATCH] Prevent exception from logging when server restarted from trying to unsafeParse non-JSON data R=dbk DELTA=4 (3 added, 1 deleted, 0 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=6019 git-svn-id: http://closure-library.googlecode.com/svn/trunk@2397 0b95b8e8-c90f-11de-9d4f-f947ee5921c8 --- closure/goog/net/channelrequest.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/closure/goog/net/channelrequest.js b/closure/goog/net/channelrequest.js index 78701b8e..9cd53db5 100644 --- a/closure/goog/net/channelrequest.js +++ b/closure/goog/net/channelrequest.js @@ -683,12 +683,14 @@ goog.net.ChannelRequest.prototype.onXmlHttpReadyStateChanged_ = function() { this.lastError_ = goog.net.ChannelRequest.Error.UNKNOWN_SESSION_ID; goog.net.BrowserChannel.notifyStatEvent( goog.net.BrowserChannel.Stat.REQUEST_UNKNOWN_SESSION_ID); + this.channelDebug_.warning('XMLHTTP Unknown SID (' + this.rid_ + ')'); } else { this.lastError_ = goog.net.ChannelRequest.Error.STATUS; goog.net.BrowserChannel.notifyStatEvent( goog.net.BrowserChannel.Stat.REQUEST_BAD_STATUS); + this.channelDebug_.warning( + 'XMLHTTP Bad status ' + status + ' (' + this.rid_ + ')'); } - this.channelDebug_.xmlHttpChannelResponseText(this.rid_, responseText); this.cleanup_(); this.dispatchFailure_(); return;