mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
Fixed logging for Settings Controller and QualityProvider
Setup/Update of Default QualityProfiles will occur on start
This commit is contained in:
parent
519e2df560
commit
48e5b36936
4 changed files with 165 additions and 8 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue