|
|
@ -57,6 +57,7 @@ namespace NzbDrone.Core.Configuration
|
|
|
|
string SyslogServer { get; }
|
|
|
|
string SyslogServer { get; }
|
|
|
|
int SyslogPort { get; }
|
|
|
|
int SyslogPort { get; }
|
|
|
|
string SyslogLevel { get; }
|
|
|
|
string SyslogLevel { get; }
|
|
|
|
|
|
|
|
bool LogDbEnabled { get; }
|
|
|
|
string Theme { get; }
|
|
|
|
string Theme { get; }
|
|
|
|
string PostgresHost { get; }
|
|
|
|
string PostgresHost { get; }
|
|
|
|
int PostgresPort { get; }
|
|
|
|
int PostgresPort { get; }
|
|
|
@ -238,7 +239,7 @@ namespace NzbDrone.Core.Configuration
|
|
|
|
public string PostgresMainDb => _postgresOptions?.MainDb ?? GetValue("PostgresMainDb", "lidarr-main", persist: false);
|
|
|
|
public string PostgresMainDb => _postgresOptions?.MainDb ?? GetValue("PostgresMainDb", "lidarr-main", persist: false);
|
|
|
|
public string PostgresLogDb => _postgresOptions?.LogDb ?? GetValue("PostgresLogDb", "lidarr-log", persist: false);
|
|
|
|
public string PostgresLogDb => _postgresOptions?.LogDb ?? GetValue("PostgresLogDb", "lidarr-log", persist: false);
|
|
|
|
public int PostgresPort => (_postgresOptions?.Port ?? 0) != 0 ? _postgresOptions.Port : GetValueInt("PostgresPort", 5432, persist: false);
|
|
|
|
public int PostgresPort => (_postgresOptions?.Port ?? 0) != 0 ? _postgresOptions.Port : GetValueInt("PostgresPort", 5432, persist: false);
|
|
|
|
|
|
|
|
public bool LogDbEnabled => _logOptions.DbEnabled ?? GetValueBoolean("LogDbEnabled", true, persist: false);
|
|
|
|
public bool LogSql => _logOptions.Sql ?? GetValueBoolean("LogSql", false, persist: false);
|
|
|
|
public bool LogSql => _logOptions.Sql ?? GetValueBoolean("LogSql", false, persist: false);
|
|
|
|
public int LogRotate => _logOptions.Rotate ?? GetValueInt("LogRotate", 50, persist: false);
|
|
|
|
public int LogRotate => _logOptions.Rotate ?? GetValueInt("LogRotate", 50, persist: false);
|
|
|
|
public int LogSizeLimit => Math.Min(Math.Max(_logOptions.SizeLimit ?? GetValueInt("LogSizeLimit", 1, persist: false), 0), 10);
|
|
|
|
public int LogSizeLimit => Math.Min(Math.Max(_logOptions.SizeLimit ?? GetValueInt("LogSizeLimit", 1, persist: false), 0), 10);
|
|
|
|