Closed Bug 1221655 Opened 9 years ago Closed 9 years ago

[fxos-device-service] Clear log

Categories

(Firefox OS Graveyard :: Infrastructure, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.6 S1 - 11/20

People

(Reporter: Eli, Assigned: Eli)

Details

(Whiteboard: [systemsfe])

Attachments

(1 file)

Should be able to wipe out logcat via service. Probably a DELETE request.
Raptor has some special logic with regards to clearing logic and connecting to logcat. Here is a comment from the codebase:

// There are two issues with `logcat -c` on Android L: 1) it doesn't clear the
// buffer, and 2) it stops current logcat from outputting messages. This is a
// workaround to take a timestamp and use it in next logcat call, i.e. next
// start() invocation so we don't run |logcat -c| here.

So we may need to adapt the logic in the service to account for a workaround.
Comment on attachment 8683811 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/fxos-device-service/pull/19

Nice work!
Attachment #8683811 - Flags: review?(gaye) → review+
Landed on master https://github.com/mozilla-b2g/fxos-device-service/commit/a1fd559e6e6431e823c09933516a64f302bbcfb3
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: FxOS-S11 (13Nov) → 2.6 S1 - 11/20
Whiteboard: [systemsfe]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: