[IMP] runbot: improve git gc warning

This commit is contained in:
Christophe Monniez 2022-06-27 08:47:20 +02:00 committed by xdo
parent 3f042c44a8
commit 9fb48f48cf

View File

@ -376,7 +376,7 @@ class Runbot(models.AbstractModel):
try:
repo._git(['gc', '--prune=all', '--quiet'])
except CalledProcessError as e:
message = f'git gc failed on host {host} with exit status {e.returncode} and message "{e.output[:30]} ..."'
message = f'git gc failed for {repo.name} on {host.name} with exit status {e.returncode} and message "{e.output[:60]} ..."'
self.warning(message)
def warning(self, message, *args):