mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 18:24:19 -04:00
Added Version string to application name connection for pgsql
This commit is contained in:
parent
df8f352d65
commit
078587d232
@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using Jellyfin.Server.Implementations;
|
||||
using Jellyfin.Server.Implementations.DatabaseConfiguration;
|
||||
using MediaBrowser.Common.Configuration;
|
||||
@ -42,7 +44,7 @@ public sealed class PgSqlDatabaseProvider : IJellyfinDatabaseProvider
|
||||
}
|
||||
|
||||
var connectionBuilder = new NpgsqlConnectionStringBuilder();
|
||||
connectionBuilder.ApplicationName = "jellyfin";
|
||||
connectionBuilder.ApplicationName = $"jellyfin+{FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly()!.Location).FileVersion}";
|
||||
connectionBuilder.CommandTimeout = dbSettings.PostgreSql.Timeout;
|
||||
connectionBuilder.Database = dbSettings.PostgreSql.DatabaseName;
|
||||
connectionBuilder.Username = dbSettings.PostgreSql.Username;
|
||||
|
Loading…
x
Reference in New Issue
Block a user