diff options
author | Mike Ma <yanmin@google.com> | 2018-12-04 15:46:29 -0800 |
---|---|---|
committer | Mike Ma <yanmin@google.com> | 2018-12-05 19:04:57 -0800 |
commit | 28381694ab5775c70a8fc21107b6b519a66ecd32 (patch) | |
tree | 137ceb41b94b6eaf1e8267bc9170d75999a61bd2 /libs/incident | |
parent | 6b611eaefcd2c3be2bdcbd1c4f52b6152e5f1eee (diff) |
Refine incidentd error handling and logging
Added or changed some error messages and logging for easier debugging.
Log a few section errors to incident metadata in addition to logcat.
Also let incident reporting continue instead of failing when non-fatal
error occurs.
Bug: 119417232
Test: Take an incident report, and logcat.
Change-Id: Id18b7b690100923a8074d99b2312ee80c0bcd760
Diffstat (limited to 'libs/incident')
-rw-r--r-- | libs/incident/proto/android/os/metadata.proto | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/incident/proto/android/os/metadata.proto b/libs/incident/proto/android/os/metadata.proto index f8f4e36b1e89..3b0e9c9aa17a 100644 --- a/libs/incident/proto/android/os/metadata.proto +++ b/libs/incident/proto/android/os/metadata.proto @@ -61,8 +61,10 @@ message IncidentMetadata { optional bool timed_out = 7; // true if the section is truncated. optional bool is_truncated = 8; + // message for debugging if there is an error. + optional string error_msg = 9; - // Next Tag: 9 + // Next Tag: 10; } repeated SectionStats sections = 6; |