mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-03-05 13:40:08 -05:00
Catch Postgres log connection errors
This commit is contained in:
@@ -97,6 +97,11 @@ namespace NzbDrone.Core.Instrumentation
|
||||
WritePostgresLog(log, connectionString);
|
||||
}
|
||||
}
|
||||
catch (NpgsqlException ex)
|
||||
{
|
||||
InternalLogger.Error("Unable to save log event to database: {0}", ex);
|
||||
throw;
|
||||
}
|
||||
catch (SQLiteException ex)
|
||||
{
|
||||
InternalLogger.Error("Unable to save log event to database: {0}", ex);
|
||||
|
||||
Reference in New Issue
Block a user