Only catch SQLite exceptions

pull/3113/head
Mark McDowall 10 years ago
parent d8f55c0358
commit 6109704fb0

@ -1,4 +1,5 @@
using System;
using System.Data.SQLite;
using NLog.Common;
using NLog.Config;
using NLog;
@ -84,7 +85,7 @@ namespace NzbDrone.Core.Instrumentation
{
_repository.Insert(log);
}
catch (Exception ex)
catch (SQLiteException ex)
{
InternalLogger.Error("Unable to save log event to database: {0}", ex);
throw;

@ -1,8 +1,6 @@
using System;
using System.IO;
using System.IO;
using System.Text;
using NLog;
using NzbDrone.Common.Instrumentation;
namespace NzbDrone.Host.Owin
{

Loading…
Cancel
Save