mirror of
https://github.com/Readarr/Readarr.git
synced 2026-09-23 03:35:03 -04:00
Log trace message when handling exceptions in the API
This commit is contained in:
1 parent
e0dc7fe2f3
commit
b63eb4efd7
1 file changed
+1
-1
@@ -20,6 +20,7 @@ public NzbDroneErrorPipeline(Logger logger)
|
||||
|
||||
public Response HandleException(NancyContext context, Exception exception)
|
||||
{
|
||||
_logger.Trace("Handling Exception");
|
||||
|
||||
var apiException = exception as ApiException;
|
||||
|
||||
@@ -49,7 +50,6 @@ public Response HandleException(NancyContext context, Exception exception)
|
||||
}.AsResponse((HttpStatusCode)clientException.StatusCode);
|
||||
}
|
||||
|
||||
|
||||
if (context.Request.Method == "PUT" || context.Request.Method == "POST")
|
||||
{
|
||||
var sqLiteException = exception as SQLiteException;
|
||||
|
||||
Reference in new issue
Block a user