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:
Genevieve Helsel 2020-02-25 15:28:52 -08:00 committed by Facebook Github Bot
parent 0528daf796
commit 88851bc88d

View File

@ -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