mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed logging for Settings Controller and QualityProvider
Setup/Update of Default QualityProfiles will occur on start
This commit is contained in:
@@ -123,11 +123,12 @@ namespace NzbDrone.Web.Controllers
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
if (Request.IsAjaxRequest())
|
||||
return Content("Settings Saved.");
|
||||
Logger.Error("Error saving settings.");
|
||||
|
||||
return Content("Settings Saved.");
|
||||
Logger.Error("");
|
||||
if (Request.IsAjaxRequest())
|
||||
return Content("Error saving settings.");
|
||||
|
||||
return Content("Error saving settings.");
|
||||
}
|
||||
|
||||
|
||||
@@ -258,6 +259,29 @@ namespace NzbDrone.Web.Controllers
|
||||
return Content("Settings Saved.");
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult SaveQuality(QualityModel data)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger.ErrorException(e.Message, e);
|
||||
if (Request.IsAjaxRequest())
|
||||
return Content("Error Saving Settings, please fix any errors");
|
||||
|
||||
return Content("Error Saving Settings, please fix any errors");
|
||||
}
|
||||
|
||||
if (Request.IsAjaxRequest())
|
||||
return Content("Settings Saved.");
|
||||
|
||||
return Content("Settings Saved.");
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult SortedList(List<object > items)
|
||||
{
|
||||
|
Reference in New Issue
Block a user