[clangd] Make background index less chatty
authorIlya Biryukov <ibiryukov@google.com>
Fri, 18 Jan 2019 17:04:26 +0000 (17:04 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Fri, 18 Jan 2019 17:04:26 +0000 (17:04 +0000)
Summary:
It is producing too much input in non-verbose mode,
i.e. a message per indexed file

Reviewers: sammccall, kadircet

Reviewed By: sammccall

Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Differential Revision: https://reviews.llvm.org/D56915

llvm-svn: 351563

clang-tools-extra/clangd/index/Background.cpp

index b9b945c..fc3bd25 100644 (file)
@@ -398,7 +398,7 @@ llvm::Error BackgroundIndex::index(tooling::CompileCommand Cmd,
     DigestsSnapshot = IndexedFileDigests;
   }
 
-  log("Indexing {0} (digest:={1})", Cmd.Filename, llvm::toHex(Hash));
+  vlog("Indexing {0} (digest:={1})", Cmd.Filename, llvm::toHex(Hash));
   ParseInputs Inputs;
   Inputs.FS = std::move(FS);
   Inputs.FS->setCurrentWorkingDirectory(Cmd.Directory);