82d99d7f64
This change enables logging file access by commit ID and path using the AuditListener interface. After a GetDiff REST request is processed, the AuditListener.onAuditableAction method is called with an ExtendedHttpAuditEvent parameter, which in turn references a DiffInfo object. However, the diff base commit ID is not available anywhere in this object graph. Left and right commit IDs are available in the PatchScriptBuilder object; that is the data we need. This change propagates the commit IDs through a series of intermediate data structures and ultimately makes them available as transient fields in the DiffInfo object. The AuditListener implementation will copy these commit values into the access log, along with the file path, timestamp and other typical logging fields. The new fields are marked transient--unsupported and undocumented. There are no anticipated side-effects. Change-Id: I43e5a14e8951442039bd2d8e941e2aa128e82447 |
||
---|---|---|
.. | ||
src | ||
BUCK |