mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-26 22:46:37 -04:00
More logging for CommandExecutor
This commit is contained in:
@@ -48,12 +48,12 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||
}
|
||||
catch (ThreadAbortException ex)
|
||||
{
|
||||
_logger.ErrorException(ex.Message, ex);
|
||||
_logger.ErrorException("Thread aborted: " + ex.Message, ex);
|
||||
Thread.ResetAbort();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error(ex.Message, ex);
|
||||
_logger.Error("Unknown error in thread: " + ex.Message, ex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||
}
|
||||
catch (CommandFailedException ex)
|
||||
{
|
||||
_commandQueueManager.SetMessage(commandModel, "Failed");
|
||||
_commandQueueManager.Fail(commandModel, ex.Message, ex);
|
||||
throw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user