Permalink
Browse files

Prevent exception from logging when server restarted from trying to u…

…nsafeParse 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
  • Loading branch information...
1 parent 2e1bbb2 commit aa0b315b4b93760d54f5f137913fb9b705ae96a2 jeffcon@google.com committed Dec 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 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;

0 comments on commit aa0b315

Please sign in to comment.