mirror of
https://github.com/Radarr/Radarr
synced 2025-02-27 00:23:19 +00:00
Only catch SQLite exceptions
This commit is contained in:
parent
d8f55c0358
commit
6109704fb0
2 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Data.SQLite;
|
||||||
using NLog.Common;
|
using NLog.Common;
|
||||||
using NLog.Config;
|
using NLog.Config;
|
||||||
using NLog;
|
using NLog;
|
||||||
|
@ -84,7 +85,7 @@ protected override void Write(LogEventInfo logEvent)
|
||||||
{
|
{
|
||||||
_repository.Insert(log);
|
_repository.Insert(log);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (SQLiteException ex)
|
||||||
{
|
{
|
||||||
InternalLogger.Error("Unable to save log event to database: {0}", ex);
|
InternalLogger.Error("Unable to save log event to database: {0}", ex);
|
||||||
throw;
|
throw;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
using System;
|
using System.IO;
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.Instrumentation;
|
|
||||||
|
|
||||||
namespace NzbDrone.Host.Owin
|
namespace NzbDrone.Host.Owin
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue