From c993c5068e0f7e22124b1bfb17ad0425fe2b8c83 Mon Sep 17 00:00:00 2001 From: Aravind Vasudevan Date: Thu, 14 Sep 2023 08:46:44 +0000 Subject: subcmds: Use repo logger Bug: b/292704435 Change-Id: Ia3a45d87fc0bf0d4a1ba53050d9c3cd2dba20e55 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/386236 Reviewed-by: Jason Chang Commit-Queue: Aravind Vasudevan Tested-by: Aravind Vasudevan --- subcmds/stage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'subcmds/stage.py') diff --git a/subcmds/stage.py b/subcmds/stage.py index 4d54eb19..92a00ea0 100644 --- a/subcmds/stage.py +++ b/subcmds/stage.py @@ -17,6 +17,10 @@ import sys from color import Coloring from command import InteractiveCommand from git_command import GitCommand +from repo_logging import RepoLogger + + +logger = RepoLogger(__file__) class _ProjectList(Coloring): @@ -62,7 +66,7 @@ The '%prog' command stages files to prepare the next commit. if p.IsDirty() ] if not all_projects: - print("no projects have uncommitted modifications", file=sys.stderr) + logger.error("no projects have uncommitted modifications") return out = _ProjectList(self.manifest.manifestProject.config) -- cgit v1.2.3-54-g00ecf