mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Catch Postgres log connection errors
This commit is contained in:
@@ -97,6 +97,11 @@ namespace NzbDrone.Core.Instrumentation
|
|||||||
WritePostgresLog(log, connectionString);
|
WritePostgresLog(log, connectionString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (NpgsqlException ex)
|
||||||
|
{
|
||||||
|
InternalLogger.Error("Unable to save log event to database: {0}", ex);
|
||||||
|
throw;
|
||||||
|
}
|
||||||
catch (SQLiteException 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);
|
||||||
|
Reference in New Issue
Block a user