mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 15:44:27 +03:00
add no-op logging to FakeEdenInstance
Summary: This is required for eden doctor cli tests when adding logging to the eden doctor code path. This can just be a stub since we don't consume these scuba log statements during testing Reviewed By: fanzeyi Differential Revision: D20087861 fbshipit-source-id: 6805ae8d9c51e33a118cbda76461483962e876f3
This commit is contained in:
parent
0528daf796
commit
88851bc88d
@ -254,3 +254,11 @@ class FakeEdenInstance:
|
||||
fake_repo = FakeHgRepo()
|
||||
fake_repo.commit_checker = bad_commit_checker
|
||||
return fake_repo
|
||||
|
||||
def build_sample(
|
||||
self, log_type: str, **kwargs: Union[bool, int, str, float]
|
||||
) -> None:
|
||||
pass
|
||||
|
||||
def log(self, sample: None) -> int:
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user