logging: stop logging requirements

Summary:
The requirements field is only interesting for non-remotefilelog or
generaldelta repos. Nowadays it's probably safe to assume clients are
remotefilelog and "requirements" is less useful.

Reviewed By: xavierd

Differential Revision: D15710676

fbshipit-source-id: 65f04b64760c652432471c4a8dda7acc4cf45466
This commit is contained in:
Jun Wu 2019-06-26 10:59:13 -07:00 committed by Facebook Github Bot
parent c754e0147b
commit d172be76bf

View File

@ -162,18 +162,8 @@ def telemetry(reporef):
repo = reporef()
if repo is None:
return
ui = repo.ui
try:
ui = repo.ui
if util.safehasattr(repo, "requirements"):
ui.log(
"requirements",
generaldelta=str("generaldelta" in repo.requirements).lower(),
)
ui.log(
"requirements",
remotefilelog=str("remotefilelog" in repo.requirements).lower(),
)
try:
lfsmetrics = repo.svfs.lfsremoteblobstore.getlfsmetrics()
ui.log("command_metrics", **lfsmetrics)