Bug 1270111 - Part 2: Netmonitor mochitest logging is too verbose, disable the detailed progress info. r=jdescottes
authorJarda Snajdr <jsnajdr@gmail.com>
Thu, 26 May 2016 06:19:00 +0200
changeset 338492 e682705064327ff3a67efa75485a31a6ebf763e0
parent 338491 c79906974f052c8060195d4d81e067f3bb4cd338
child 338493 ecf16ec4c66d810603ae9a857d9517bf8eb2a644
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1270111
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1270111 - Part 2: Netmonitor mochitest logging is too verbose, disable the detailed progress info. r=jdescottes
devtools/client/netmonitor/test/head.js
--- a/devtools/client/netmonitor/test/head.js
+++ b/devtools/client/netmonitor/test/head.js
@@ -249,17 +249,18 @@ function waitForNetworkEvents(aMonitor, 
       postEvents + "/" + (aPostRequests * 2) + ", " +
       "got " + event + " for " + actor);
 
     let networkInfo =
       panel.NetMonitorController.webConsoleClient.getNetworkRequest(actor);
     let url = networkInfo.request.url;
     updateProgressForURL(url, event);
 
-    info("> Current state: " + JSON.stringify(progress, null, 2));
+    // Uncomment this to get a detailed progress logging (when debugging a test)
+    // info("> Current state: " + JSON.stringify(progress, null, 2));
 
     // There are 15 updates which need to be fired for a request to be
     // considered finished. The "requestPostData" packet isn't fired for
     // non-POST requests.
     if (genericEvents >= (aGetRequests + aPostRequests) * 13 &&
         postEvents >= aPostRequests * 2) {
 
       awaitedEventsToListeners.forEach(([e, l]) => panel.off(events[e], l));