commit | 6c863b758f1b4f367946b78f5a93ad0337924023 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Sun Sep 17 15:44:51 2017 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Thu Sep 28 17:16:14 2017 -0700 |
tree | 19e0c4f1440e0bf6dad0651ccf44dd492de8e6cd | |
parent | 098f702f1cdcc84307e8bebea09b6e957baa6e8f [diff] |
Allow update_engine to log to both logd and filesystem Add a new option "logtofile" which default to false. 1. If both "logtostderr" and "logtofile" present, write to system debug and log file. 2. If only "logtostderr" presents, write to system debug. 3. Otherwise write to log file only. This keep the old logging behavior for omaha. Bug: 65568605 Test: apply an update on pixel2 and check the log. Change-Id: Id998f626fe5ebefbf6f4dffc19aee1c552343ab6