diff mbox series

[auh,04/11] modules/utils/git.py: use warning instead of debugging logging for git command error

Message ID 20260311063557.229656-4-Qi.Chen@windriver.com
State New
Headers show
Series [auh,01/11] upgrade-helper.py: remove unused self.poky_git settings | expand

Commit Message

ChenQi March 11, 2026, 6:35 a.m. UTC
From: Chen Qi <Qi.Chen@windriver.com>

git command error is obviously critical and should be presented to
user more clearly.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 modules/utils/git.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/modules/utils/git.py b/modules/utils/git.py
index 3be75bf..0482d26 100644
--- a/modules/utils/git.py
+++ b/modules/utils/git.py
@@ -24,7 +24,7 @@ 
 #
 
 import os
-from logging import debug as D
+from logging import warning as W
 
 from utils.bitbake import bb
 from errors import Error
@@ -41,7 +41,7 @@  class Git(object):
         try:
             stdout, stderr = bb.process.run(cmd)
         except bb.process.ExecutionError as e:
-            D("%s executed from %s returned:\n%s" % (cmd, self.repo_dir, e.__str__()))
+            W("%s executed from %s returned:\n%s" % (cmd, self.repo_dir, e.__str__()))
             raise Error("The following git command failed: " + operation,
                         e.stdout, e.stderr)