mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-15 21:14:32 +01:00
Catch Postgres log connection errors
This commit is contained in:
parent
adf38f256b
commit
a738cfb23a
1 changed files with 5 additions and 0 deletions
|
|
@ -97,6 +97,11 @@ protected override void Write(LogEventInfo logEvent)
|
|||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue