path: root/lib
diff options
authorDean Michael Berris <>2017-12-13 06:37:13 +0000
committerDean Michael Berris <>2017-12-13 06:37:13 +0000
commitc19e91fe7bb520eb33af41d4dea2689c77e22067 (patch)
tree2b30bc5400be70555242fd69c6979e845968034e /lib
parent4f20a94a11e63df059a5d315b30b8ddf22b10959 (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: 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xray/ b/lib/xray/
index b9a38d1b9..cf800d3ae 100644
--- a/lib/xray/
+++ b/lib/xray/
@@ -117,7 +117,8 @@ int getLogFD() XRAY_NEVER_INSTRUMENT {
return -1;
- Report("XRay: Log file in '%s'\n", TmpFilename);
+ if (__sanitizer::Verbosity())
+ Report("XRay: Log file in '%s'\n", TmpFilename);
return Fd;