mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
489e9071c4
Summary: In Eden, some Thrift endpoints get a lot of hits whereas others are used less frequently. By giving each endpoint its own logging category, we can toggle the logging for each one independently. Each of our Thrift endpoint methods should start with the following macro: INSTRUMENT_THRIFT_CALL(); then within the method, the macro `TLOG()` should be used everywhere `XLOG(LEVEL)` would normally used. `LOG()` ensures the logger with the category specific to the method will be used. For an endpoint named `XXX`, the logging category will be `eden.thrift.XXX`. Reviewed By: simpkins Differential Revision: D6108311 fbshipit-source-id: 23a34179811359b0819434de31a3601d29c3b4f0 |
||
---|---|---|
.. | ||
config | ||
fuse | ||
inodes | ||
journal | ||
model | ||
rocksdb | ||
service | ||
store | ||
testharness | ||
utils |