diff options
author | LaMont Jones <lamontjones@google.com> | 2022-11-07 23:19:14 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-11-08 19:54:20 +0000 |
commit | a3ff64cae54fca4738f49668c4ee6678969000c3 (patch) | |
tree | e38240ccf36f9bf3af250df57e7dc248a125c6b0 /repo_trace.py | |
parent | 776138a93898491739352f9d599fa048e943d6b6 (diff) | |
download | git-repo-a3ff64cae54fca4738f49668c4ee6678969000c3.tar.gz |
Improve always-on-trace
Notes to the user need to go to stderr, and tracing should not be on for
fast exiting invocations (such as --help).
This makes it so that release/update-manpages works.
Change-Id: Ib183193c868a78c295a184c01c4532cd53d512eb
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/350794
Tested-by: LaMont Jones <lamontjones@google.com>
Reviewed-by: Xin Li <delphij@google.com>
Diffstat (limited to 'repo_trace.py')
-rw-r--r-- | repo_trace.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repo_trace.py b/repo_trace.py index 0ff3b694..03542950 100644 --- a/repo_trace.py +++ b/repo_trace.py | |||
@@ -119,7 +119,7 @@ def _GetTraceFile(): | |||
119 | # TODO: refactor to pass repodir to Trace. | 119 | # TODO: refactor to pass repodir to Trace. |
120 | repo_dir = os.path.dirname(os.path.dirname(__file__)) | 120 | repo_dir = os.path.dirname(os.path.dirname(__file__)) |
121 | trace_file = os.path.join(repo_dir, _TRACE_FILE_NAME) | 121 | trace_file = os.path.join(repo_dir, _TRACE_FILE_NAME) |
122 | print('Trace outputs in %s' % trace_file) | 122 | print('Trace outputs in %s' % trace_file, file=sys.stderr) |
123 | return trace_file | 123 | return trace_file |
124 | 124 | ||
125 | def _ClearOldTraces(): | 125 | def _ClearOldTraces(): |