From c6e224469462a9f26f2b40e52edeb871ba730d52 Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 28 Dec 2023 05:10:54 -0800 Subject: [PATCH] Tweak logging --- domain/Migrator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/domain/Migrator.py b/domain/Migrator.py index 951918c..e1b1756 100644 --- a/domain/Migrator.py +++ b/domain/Migrator.py @@ -190,7 +190,9 @@ class Migrator: for repo in repos_migrate: repo: giteapy.Repository destination_name = self._make_destination_repo_name(pattern=destination_repo_name, repo=repo) - self.__logger.info(f"#{repo.id} \"{repo.name}\" ==> \"{destination_name}\"") + self.__logger.info( + f"#{repo.id} \"{repo.name}\"\n> \"{destination_name}\"" + ) else: self.__logger.info("No repos marked to migrate") @@ -394,7 +396,7 @@ class Migrator: repo_api: giteapy.RepositoryApi self.__logger.info("") - self.__logger.info("Can now delete the following successfully migrated repos:") + self.__logger.info(f"Can now delete {len(repos)} successfully migrated repos:") for r in repos: self.__logger.info(f"> #{r.id} \"{r.full_name}\" ==> {r.clone_url}")