mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-29 00:00:50 +02:00
Fixed: Log DB write connection opening
This commit is contained in:
parent
e480f53f7f
commit
2da22c08b0
1 changed files with 1 additions and 3 deletions
|
|
@ -128,10 +128,8 @@ private void WritePostgresLog(Log log, string connectionString)
|
|||
private void WriteSqliteLog(Log log, string connectionString)
|
||||
{
|
||||
using (var connection =
|
||||
new SQLiteConnection(_connectionStringFactory.LogDbConnectionString).OpenAndReturn())
|
||||
new SQLiteConnection(connectionString).OpenAndReturn())
|
||||
{
|
||||
connection.ConnectionString = connectionString;
|
||||
connection.Open();
|
||||
using (var sqlCommand = connection.CreateCommand())
|
||||
{
|
||||
sqlCommand.CommandText = INSERT_COMMAND;
|
||||
|
|
|
|||
Loading…
Reference in a new issue