mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Log DB write connection opening
This commit is contained in:
@@ -128,10 +128,8 @@ namespace NzbDrone.Core.Instrumentation
|
|||||||
private void WriteSqliteLog(Log log, string connectionString)
|
private void WriteSqliteLog(Log log, string connectionString)
|
||||||
{
|
{
|
||||||
using (var connection =
|
using (var connection =
|
||||||
new SQLiteConnection(_connectionStringFactory.LogDbConnectionString).OpenAndReturn())
|
new SQLiteConnection(connectionString).OpenAndReturn())
|
||||||
{
|
{
|
||||||
connection.ConnectionString = connectionString;
|
|
||||||
connection.Open();
|
|
||||||
using (var sqlCommand = connection.CreateCommand())
|
using (var sqlCommand = connection.CreateCommand())
|
||||||
{
|
{
|
||||||
sqlCommand.CommandText = INSERT_COMMAND;
|
sqlCommand.CommandText = INSERT_COMMAND;
|
||||||
|
Reference in New Issue
Block a user