[fxos-device-service] Clear log

RESOLVED FIXED in 2.6 S1 - 11/20

Status

Firefox OS
Infrastructure
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: Eli, Assigned: Eli)

Tracking

unspecified
2.6 S1 - 11/20
ARM
Gonk (Firefox OS)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [systemsfe])

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
Should be able to wipe out logcat via service. Probably a DELETE request.
(Assignee)

Comment 1

3 years ago
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.
(Assignee)

Comment 2

3 years ago
Created attachment 8683811 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/fxos-device-service/pull/19
Attachment #8683811 - Flags: review?(gaye)
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
Last Resolved: 3 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.