diff options
author | Ian Kasprzak <iankaz@google.com> | 2020-12-23 10:08:20 -0800 |
---|---|---|
committer | Ian Kasprzak <iankaz@google.com> | 2021-01-06 17:49:41 +0000 |
commit | 30bc354e25cb5ccfbbb276a93ec54195e6b966a4 (patch) | |
tree | bf4e82ca88ade5a57b2fb1e46a6a8991c84f7b98 /subcmds/gitc_init.py | |
parent | ce9b6c43b2394f3f8c9413abfa3a10597de54223 (diff) | |
download | git-repo-30bc354e25cb5ccfbbb276a93ec54195e6b966a4.tar.gz |
Enable git trace2 event format logging.
Ways to enable logging:
1) Set git's trace2.eventtarget config variable to desired logging path
2) Specify path via --git_trace2_event_log option
A unique logfile name is generated per repo execution (based on the repo session-id).
Testing:
1) Verified git config 'trace2.eventtarget' and flag enable logging.
2) Verified version/start/end events are expected format:
https://git-scm.com/docs/api-trace2#_event_format
3) Unit tests
Bug: https://crbug.com/gerrit/13706
Change-Id: I335eba68124055321c4149979bec36ac16ef81eb
Tested-by: Ian Kasprzak <iankaz@google.com>
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/292262
Reviewed-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Jonathan Nieder <jrn@google.com>
Diffstat (limited to 'subcmds/gitc_init.py')
0 files changed, 0 insertions, 0 deletions