From 7f8bd85184deae52861513b6fd602508eebdd232 Mon Sep 17 00:00:00 2001 From: Raman Tenneti Date: Thu, 2 Sep 2021 16:13:06 -0700 Subject: [PATCH] superoject: log error message in the 'fmt' field also. Tested: + Verified error messages are being collected. Bug: [google internal] b/193711236 Change-Id: I6c608a2af332ccd38722b7f83a82e5ac8fa143db Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/317162 Reviewed-by: Xin Li Tested-by: Raman Tenneti --- git_superproject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_superproject.py b/git_superproject.py index 3613fb00..3b23d292 100644 --- a/git_superproject.py +++ b/git_superproject.py @@ -128,7 +128,7 @@ class Superproject(object): """Logs message to stderr and _git_event_log.""" if self._print_messages: print(message, file=sys.stderr) - self._git_event_log.ErrorEvent(message, '') + self._git_event_log.ErrorEvent(message, f'{message}') def _LogError(self, message): """Logs error message to stderr and _git_event_log."""