mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-29 19:28:27 -07:00
Log trace message when handling exceptions in the API
This commit is contained in:
parent
e0dc7fe2f3
commit
b63eb4efd7
1 changed files with 1 additions and 1 deletions
|
@ -20,6 +20,7 @@ namespace NzbDrone.Api.ErrorManagement
|
||||||
|
|
||||||
public Response HandleException(NancyContext context, Exception exception)
|
public Response HandleException(NancyContext context, Exception exception)
|
||||||
{
|
{
|
||||||
|
_logger.Trace("Handling Exception");
|
||||||
|
|
||||||
var apiException = exception as ApiException;
|
var apiException = exception as ApiException;
|
||||||
|
|
||||||
|
@ -49,7 +50,6 @@ namespace NzbDrone.Api.ErrorManagement
|
||||||
}.AsResponse((HttpStatusCode)clientException.StatusCode);
|
}.AsResponse((HttpStatusCode)clientException.StatusCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (context.Request.Method == "PUT" || context.Request.Method == "POST")
|
if (context.Request.Method == "PUT" || context.Request.Method == "POST")
|
||||||
{
|
{
|
||||||
var sqLiteException = exception as SQLiteException;
|
var sqLiteException = exception as SQLiteException;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue