From 9db3f1b0dae233ce1797a82ddf5638bbfabbfd52 Mon Sep 17 00:00:00 2001 From: Glax Date: Thu, 31 Oct 2024 20:42:56 +0100 Subject: [PATCH] Extend logging on startup --- Tranga/Jobs/JobBoss.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index c3eebfa..fd48ef6 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -167,8 +167,12 @@ public class JobBoss : GlobalBase else { Log($"Adding Job {job}"); - if(!AddJob(job, file.FullName)) //If we detect a duplicate, delete the file. - file.MoveTo(string.Concat(file.FullName, ".failed")); + if (!AddJob(job, file.FullName)) //If we detect a duplicate, delete the file. + { + string path = string.Concat(file.FullName, ".failed"); + file.MoveTo(path); + Log($"Duplicate detected or otherwise not able to add job to list.\nMoved job {job} to {path}"); + } } }