From 9fb48f48cfe5910e55d02d30ae2f8706d8b63f34 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 27 Jun 2022 08:47:20 +0200 Subject: [PATCH] [IMP] runbot: improve git gc warning --- runbot/models/runbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/runbot.py b/runbot/models/runbot.py index 9401d8bb..499c6b00 100644 --- a/runbot/models/runbot.py +++ b/runbot/models/runbot.py @@ -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):