Bug 1085318 - [mozdevice] Change the log level within DeviceManagerADB.getInfo to DEBUG. r=wlachance

This commit is contained in:
Dave Hunt 2014-10-20 05:05:00 +02:00
parent 45023e2ed9
commit 9940acb270
2 changed files with 5 additions and 1 deletions

View File

@ -522,7 +522,7 @@ class DeviceManagerADB(DeviceManager):
key, value = line.split(":")
meminfo[key] = value.strip()
ret["memtotal"] = meminfo["MemTotal"]
self._logger.info(ret)
self._logger.debug("getInfo: %s" % ret)
return ret
def uninstallApp(self, appName, installPath=None):

View File

@ -134,10 +134,14 @@ class DMCli(object):
self.parser = argparse.ArgumentParser()
self.add_options(self.parser)
self.add_commands(self.parser)
mozlog.structured.commandline.add_logging_group(self.parser)
def run(self, args=sys.argv[1:]):
args = self.parser.parse_args()
mozlog.structured.commandline.setup_logging(
'mozdevice', args, {'mach': sys.stdout})
if args.dmtype == "sut" and not args.host and not args.hwid:
self.parser.error("Must specify device ip in TEST_DEVICE or "
"with --host option with SUT")