Closed Bug 841969 Opened 12 years ago Closed 12 years ago

Make mozdevice's ADB manager less chatty

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davehunt, Assigned: davehunt)

Details

Attachments

(1 file, 1 obsolete file)

Every time we initialise DeviceManagerADB we get the version printed to stdout. Also, when copying files we often see "'cp' not found, but 'dd' was found as a replacement". This makes following results in the console difficult.
Attached patch Make mozdevice less chatty. v1.0 (obsolete) — Splinter Review
Too extreme?
Assignee: nobody → dave.hunt
Attachment #714686 - Flags: review?(jhammel)
Attachment #714686 - Attachment description: Shut the b2g up, mozdevice. v1.0 → Make mozdevice less chatty. v1.0
Attachment #714686 - Flags: review?(jhammel) → review?(jmaher)
(In reply to Dave Hunt (:davehunt) from comment #0) > Also, when copying files we often see "'cp' not found, but 'dd' was > found as a replacement". This makes following results in the console > difficult. I wonder why we don't always just use 'dd', since it's always there. That would eliminate the need for these sorts of checks altogether. :gbrown?
I think we used cp initially, then added dd as a fallback when we discovered devices without cp. I suspect using dd all the time would work just fine.
Also silence stderr.
Attachment #714686 - Attachment is obsolete: true
Attachment #714686 - Flags: review?(jmaher)
Attachment #715180 - Flags: review?(jmaher)
(In reply to Geoff Brown [:gbrown] from comment #3) > I think we used cp initially, then added dd as a fallback when we discovered > devices without cp. I suspect using dd all the time would work just fine. Could we take care of this in a separate bug? I wouldn't want to introduce a regression when all I'm wanting to do is reduce console output.
Comment on attachment 715180 [details] [diff] [review] Make mozdevice less chatty. v1.1 Review of attachment 715180 [details] [diff] [review]: ----------------------------------------------------------------- This looks good. I would rather fix the dd by default in another bug, it seems as though most people who are trying to run tests have problems and devicemanagerADB causes a lot of frustration.
Attachment #715180 - Flags: review?(jmaher) → review+
I think this bug is kind of a duplicate of bug 793202. In that scheme we'd log all these messages at the DEBUG level, but run it at the INFO level by default. That way we won't lose potential debugging info. If you don't want to wait for bug 793202 feel free to land and I'll make a note there to re-enable this message at the DEBUG level.
Landed as: https://github.com/mozilla/mozbase/commit/0ff6514efff72a929fb33de16834bd73fce1283e Ahal: Sounds good to change this to a debug log. Let me know if you need anything from me.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
(In reply to Dave Hunt (:davehunt) from comment #5) > (In reply to Geoff Brown [:gbrown] from comment #3) > > I think we used cp initially, then added dd as a fallback when we discovered > > devices without cp. I suspect using dd all the time would work just fine. > > Could we take care of this in a separate bug? I wouldn't want to introduce a > regression when all I'm wanting to do is reduce console output. I filed bug 842668 to take care of this.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: