Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Issue 10825187: Suppress "errors" that aren't really errors. (Closed)

Created:
8 years, 4 months ago by Jamie
Modified:
8 years, 4 months ago
Reviewers:
garykac, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Add support for suppressing error logging, and don't log errors due to cached host information or client device suspend. BUG=139389 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150004

Patch Set 1 #

Patch Set 2 : Reinstated console logs. #

Patch Set 3 : Fixed JSCompile error. #

Total comments: 6

Patch Set 4 : Fixed comment. #

Total comments: 2

Patch Set 5 : Generalized suspend_monitor comment. #

Patch Set 6 : Added JSCompiler hints. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -3 lines) Patch
M remoting/remoting.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M remoting/webapp/client_screen.js View 2 chunks +3 lines, -1 line 0 comments Download
M remoting/webapp/client_session.js View 1 2 3 3 chunks +27 lines, -2 lines 2 comments Download
M remoting/webapp/main.html View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/webapp/remoting.js View 1 chunk +7 lines, -0 lines 2 comments Download
A remoting/webapp/suspend_monitor.js View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Jamie
This CL allows errors to be suppressed by the client in cases where we know ...
8 years, 4 months ago (2012-08-03 21:15:15 UTC) #1
simonmorris
http://codereview.chromium.org/10825187/diff/4001/remoting/webapp/client_session.js File remoting/webapp/client_session.js (right): http://codereview.chromium.org/10825187/diff/4001/remoting/webapp/client_session.js#newcode668 remoting/webapp/client_session.js:668: * JID will be refreshed and the connectioned retried. ...
8 years, 4 months ago (2012-08-03 21:48:49 UTC) #2
simonmorris
The title of the CL looks wrong.
8 years, 4 months ago (2012-08-03 21:49:17 UTC) #3
Jamie
Wez, since Simon isn't available could you take over? I'd like to land this for ...
8 years, 4 months ago (2012-08-03 23:15:14 UTC) #4
garykac
lgtm but please check the 'use strict' http://codereview.chromium.org/10825187/diff/4002/remoting/webapp/suspend_monitor.js File remoting/webapp/suspend_monitor.js (right): http://codereview.chromium.org/10825187/diff/4002/remoting/webapp/suspend_monitor.js#newcode12 remoting/webapp/suspend_monitor.js:12: Shouldn't there ...
8 years, 4 months ago (2012-08-04 00:43:46 UTC) #5
Jamie
fyi http://codereview.chromium.org/10825187/diff/4002/remoting/webapp/suspend_monitor.js File remoting/webapp/suspend_monitor.js (right): http://codereview.chromium.org/10825187/diff/4002/remoting/webapp/suspend_monitor.js#newcode12 remoting/webapp/suspend_monitor.js:12: On 2012/08/04 00:43:46, garykac wrote: > Shouldn't there ...
8 years, 4 months ago (2012-08-04 00:51:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/10825187/1007
8 years, 4 months ago (2012-08-04 00:51:57 UTC) #7
commit-bot: I haz the power
Change committed as 150004
8 years, 4 months ago (2012-08-04 02:58:20 UTC) #8
Wez
https://chromiumcodereview.appspot.com/10825187/diff/1007/remoting/webapp/client_session.js File remoting/webapp/client_session.js (right): https://chromiumcodereview.appspot.com/10825187/diff/1007/remoting/webapp/client_session.js#newcode103 remoting/webapp/client_session.js:103: this.logErrors_ = true; There's a danger that we suppress ...
8 years, 4 months ago (2012-08-07 00:00:59 UTC) #9
Jamie
8 years, 4 months ago (2012-08-07 00:37:04 UTC) #10
This CL has already landed; my comments are just FYI.

https://chromiumcodereview.appspot.com/10825187/diff/1007/remoting/webapp/cli...
File remoting/webapp/client_session.js (right):

https://chromiumcodereview.appspot.com/10825187/diff/1007/remoting/webapp/cli...
remoting/webapp/client_session.js:103: this.logErrors_ = true;
On 2012/08/07 00:01:00, Wez wrote:
> There's a danger that we suppress logging and miss something useful; we could
> continue to log in these situations but include flags in the logged stanzas to
> indicate e.g. whether the client thought it was online, etc, so that we get
full
> raw logging and can then post-process to get the numbers we need.

We still log eof-session, and it will still have the error attached to it, but
we don't log it as an error any more. The data we would have logged prior to
this change is inferable if we're ever interested.

https://chromiumcodereview.appspot.com/10825187/diff/1007/remoting/webapp/rem...
File remoting/webapp/remoting.js (right):

https://chromiumcodereview.appspot.com/10825187/diff/1007/remoting/webapp/rem...
remoting/webapp/remoting.js:52: remoting.clientSession.logErrors(false);
On 2012/08/07 00:01:00, Wez wrote:
> The assumption is that once we've suspended there is no way that this session
> will ever resume?

Yes. We don't invoke the callback unless the device was idle for at least 2m,
and I think the number of connections that survive that and subsequently fail
for unrelated reasons is not likely to be statistically significant.

Powered by Google App Engine
This is Rietveld 408576698