Bug 1311116 - Use info level logging in Marionette debug builds; r=automatedtester
authorAndreas Tolfsen <ato@mozilla.com>
Thu, 10 Nov 2016 16:09:38 +0000
changeset 322413 1c001b02b27879006abc615beab2d51dfa3de988
parent 322412 222dd5537727a008fbb3fc299d6e3ef856761f46
child 322414 f547d674f0c2b587c03a0893ec1abe65faed43f0
push id30951
push usercbook@mozilla.com
push dateTue, 15 Nov 2016 11:25:40 +0000
treeherdermozilla-central@85a9d908e91a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester
bugs1311116
milestone52.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 1311116 - Use info level logging in Marionette debug builds; r=automatedtester Increase the default logging level for debug builds to `Log.Level.Info`. If we desire a finer log level for debug builds on try jobs, we can set the `marionette.logging` preference from the Marionette client in the future. MozReview-Commit-ID: 2vspGheBodq
testing/marionette/components/marionettecomponent.js
--- a/testing/marionette/components/marionettecomponent.js
+++ b/testing/marionette/components/marionettecomponent.js
@@ -62,19 +62,16 @@ MarionetteComponent.prototype.setupLogge
   let log = Log.repository.getLogger("Marionette");
   log.level = level;
   log.addAppender(new Log.DumpAppender());
   return log;
 };
 
 MarionetteComponent.prototype.determineLoggingLevel_ = function() {
   let level = Log.Level.Info;
-#ifdef DEBUG
-  level = Log.Level.Trace;
-#endif
 
   // marionette.logging pref can override default
   // with an entry from the Log.Level enum
   if (Preferences.has(LOG_PREF)) {
     let p = Preferences.get(LOG_PREF);
 
     switch (typeof p) {
       // Gecko >= 46