diff options
author | Dean Michael Berris <dberris@google.com> | 2017-12-13 06:37:13 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-12-13 06:37:13 +0000 |
commit | c19e91fe7bb520eb33af41d4dea2689c77e22067 (patch) | |
tree | 2b30bc5400be70555242fd69c6979e845968034e /lib | |
parent | 4f20a94a11e63df059a5d315b30b8ddf22b10959 (diff) |
[XRay][compiler-rt] Reduce XRay log spam
This change makes XRay print the log file output only when the verbosity
level is higher than 0. It reduces the log spam in the default case when
we want XRay running silently, except when there are actual
fatal/serious errors.
We also update the documentation to show how to get the information
after the change to the default behaviour.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xray/xray_utils.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xray/xray_utils.cc b/lib/xray/xray_utils.cc index b9a38d1b9..cf800d3ae 100644 --- a/lib/xray/xray_utils.cc +++ b/lib/xray/xray_utils.cc @@ -117,7 +117,8 @@ int getLogFD() XRAY_NEVER_INSTRUMENT { TmpFilename); return -1; } - Report("XRay: Log file in '%s'\n", TmpFilename); + if (__sanitizer::Verbosity()) + Report("XRay: Log file in '%s'\n", TmpFilename); return Fd; } |