Permalink
Browse files

Bug 831404 - Add more logging to try to debug test failures. r=trivial

  • Loading branch information...
1 parent 077e810 commit 60c4e7c51a17b2fe4f410879aaf6715a209abcc3 @rnewman rnewman committed Mar 26, 2013
Showing with 10 additions and 6 deletions.
  1. +10 −6 services/datareporting/policy.jsm
@@ -912,12 +912,16 @@ DataReportingPolicy.prototype = Object.freeze({
// We're waiting for user action or implicit acceptance after display.
if (notifyState == this.STATE_NOTIFY_WAIT) {
// Check for implicit acceptance.
- let implicitAcceptanceDate =
- new Date(this._dataSubmissionPolicyNotifiedDate.getTime() +
- this.IMPLICIT_ACCEPTANCE_INTERVAL_MSEC);
-
- if (now.getTime() < implicitAcceptanceDate.getTime()) {
- this._log.debug("Still waiting for reaction or implicit acceptance.");
+ let implicitAcceptance =
+ this._dataSubmissionPolicyNotifiedDate.getTime() +
+ this.IMPLICIT_ACCEPTANCE_INTERVAL_MSEC;
+
+ this._log.debug("Now: " + now.getTime());
+ this._log.debug("Will accept: " + implicitAcceptance);
+ if (now.getTime() < implicitAcceptance) {
+ this._log.debug("Still waiting for reaction or implicit acceptance. " +
+ "Now: " + now.getTime() + " < " +
+ "Accept: " + implicitAcceptance);
return false;
}

0 comments on commit 60c4e7c

Please sign in to comment.