Added logging around the Newsletter #717

This commit is contained in:
Jamie.Rees 2016-12-08 16:10:26 +00:00
parent 88b1472f88
commit b55f1ed231
2 changed files with 23 additions and 2 deletions

View file

@ -1050,12 +1050,13 @@ namespace PlexRequests.UI.Modules
{
try
{
Log.Debug("Clicked TEST");
RecentlyAdded.Test();
return Response.AsJson(new JsonResponseModel { Result = true, Message = "Sent email to administrator" });
}
catch (Exception e)
{
Log.Error(e);
return Response.AsJson(new JsonResponseModel { Result = false, Message = e.Message });
}
}