[clangd] Add index server request logging
authorSam McCall <sam.mccall@gmail.com>
Mon, 2 Nov 2020 23:24:03 +0000 (00:24 +0100)
committerSam McCall <sam.mccall@gmail.com>
Wed, 11 Nov 2020 22:58:18 +0000 (23:58 +0100)
commit686d8a0911de7d9b13617c5aef66f6cebde05d5b
tree20c30b72d119c6e9d278662513f3adfea280b7f9
parente5ec94a1a083e055ac2686ecc72fb4868dd7ce85
[clangd] Add index server request logging

- Add verbose logging of payloads
- Add public logging of request summaries
- fix non-logging of messages in request scopes (oops!)
- add test for public/non-public logging, extending pipeline_helper a bit.

We've accumulated quite a lot of duplication in the request handlers by now.
I should factor that out, but not in this patch...

Differential Revision: https://reviews.llvm.org/D90654
clang-tools-extra/clangd/index/remote/server/Server.cpp
clang-tools-extra/clangd/test/remote-index/pipeline_helper.py
clang-tools-extra/clangd/test/remote-index/public-log.test [new file with mode: 0644]