From c19e91fe7bb520eb33af41d4dea2689c77e22067 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Wed, 13 Dec 2017 06:37:13 +0000 Subject: [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 --- lib/xray/xray_utils.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3