mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
More logging for CommandExecutor
This commit is contained in:
parent
49718fbfbe
commit
aae3970865
3 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue