From a2150a72ef6af4abe4f7420a1322cff26fe43f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cxxq250=E2=80=9D?= <“xxq250@qq.com”> Date: Wed, 10 Aug 2022 11:18:17 +0800 Subject: [PATCH] =?UTF-8?q?gitlink=E5=AE=9A=E5=88=B6=EF=BC=9Agitee?= =?UTF-8?q?=E5=92=8Cgithub=E5=88=86=E5=BC=80=E5=90=8C=E6=AD=A5,=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sync/rebase_logic_gitlink.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sync/rebase_logic_gitlink.py b/sync/rebase_logic_gitlink.py index 28d49eb..9744a96 100644 --- a/sync/rebase_logic_gitlink.py +++ b/sync/rebase_logic_gitlink.py @@ -90,8 +90,8 @@ async def sync_inter_code_by_rabase(project: ProjectDTO, job: JobDTO): "git log HEAD~1..HEAD --oneline", repo_dir, job) commit = result.split(" ")[0] await service.update_job_lateset_commit(job.id, commit) - except: - msg = f"Sync the code from inter to outer of project {project.name} branch {job.github_branch} failed" + except Exception as e: + msg = f"Sync the code from inter to outer of project {project.name} branch {job.github_branch} failed {e}" await Log(LogType.ERROR, msg, job.id) finally: await cmd.shell(f"rm -rf {dir}", '.', job) @@ -145,7 +145,7 @@ async def sync(): tasks = [] for job in gitee_jobs: await Log(LogType.INFO, - f"The gitlink branch {job.gitlink_branch} from {job.project} is now syncing", job.id) + f"The gitlink branch {job.gitlink_branch} from {job.project} is now syncing...", job.id) task = asyncio.create_task(sync_job(job)) tasks.append(task)