From 6bab9a34dd5a0548a89c0d14526459f35f1c38dc Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Wed, 24 Aug 2011 16:54:48 -0700 Subject: [PATCH] Improved job thread execution locking log --- NzbDrone.Core/Providers/Jobs/JobProvider.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core/Providers/Jobs/JobProvider.cs b/NzbDrone.Core/Providers/Jobs/JobProvider.cs index dc9573285..c981d6c4a 100644 --- a/NzbDrone.Core/Providers/Jobs/JobProvider.cs +++ b/NzbDrone.Core/Providers/Jobs/JobProvider.cs @@ -179,7 +179,14 @@ public virtual void QueueJob(Type jobType, int targetId = 0) } else { - Logger.Error("Execution lock has fucked up. Thread still active. Ignoring request."); + var messge = "Job Thread is null"; + + if (_jobThread != null) + { + messge = "Job Thread State: " + _jobThread.ThreadState; + } + + Logger.Error("Execution lock has fucked up. {0}. Ignoring request.", messge); } }