Bug 1240182 - Use Log.Level.Debug for logging accepted and closed sockets; r=automatedtester
authorAndreas Tolfsen <ato@mozilla.com>
Mon, 18 Jan 2016 19:09:31 +0000
changeset 280432 2007ddbc08c9acf8d032b62c2005b9d65ba8e31b
parent 280431 77ce3012d481b480f87ff2a0063e1b11d9999f68
child 280433 20fdd2a2344e129897217b42468cc5c85dc3f76d
push id70452
push usernigelbabu@gmail.com
push dateTue, 19 Jan 2016 07:47:18 +0000
treeherdermozilla-inbound@20fdd2a2344e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester
bugs1240182
milestone46.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 1240182 - Use Log.Level.Debug for logging accepted and closed sockets; r=automatedtester
testing/marionette/server.js
--- a/testing/marionette/server.js
+++ b/testing/marionette/server.js
@@ -129,25 +129,25 @@ MarionetteServer.prototype.onSocketAccep
   let output = clientSocket.openOutputStream(0, 0, 0);
   let transport = new DebuggerTransport(input, output);
   let connId = "conn" + this.nextConnId++;
 
   let dispatcher = new Dispatcher(connId, transport, this.driverFactory.bind(this));
   dispatcher.onclose = this.onConnectionClosed.bind(this);
   this.conns[connId] = dispatcher;
 
-  logger.info(`Accepted connection ${connId} from ${clientSocket.host}:${clientSocket.port}`);
+  logger.debug(`Accepted connection ${connId} from ${clientSocket.host}:${clientSocket.port}`);
   dispatcher.sayHello();
   transport.ready();
 };
 
 MarionetteServer.prototype.onConnectionClosed = function(conn) {
   let id = conn.connId;
   delete this.conns[id];
-  logger.info(`Closed connection ${id}`);
+  logger.debug(`Closed connection ${id}`);
 };
 
 function isMulet() {
   try {
     return Services.prefs.getBoolPref("b2g.is_mulet");
   } catch (e) {
     return false;
   }