fix x2pagentd section in hg rage

Summary: The path changed. I'm updating it so it's correct.

Reviewed By: HarveyHunt

Differential Revision: D33478628

fbshipit-source-id: 69a9da77ba0e574a8cd19ef84d4224a5185e1c68
This commit is contained in:
Jan Mazur 2022-01-10 02:39:04 -08:00 committed by Facebook GitHub Bot
parent c6d655eb7f
commit bc418a1b21

View File

@ -277,8 +277,11 @@ def checkproxyagentstate(ui):
logs = "OS not supported"
if pycompat.iswindows:
username = util.getuser()
logs = shcmd(
"type C:\\Users\\%USERNAME%\\AppData\\Local\\facebook\\fb-x2pagentd\\x2pagentd.log"
"type C:\\Users\\{}\\AppData\\Local\\facebook\\fb-x2pagentd\\fb-x2pagentd.log".format(
username
)
)
elif pycompat.islinux:
logs = shcmd("journalctl --user-unit x2pagentd.service | tail -n 100")