aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration/ServerConfiguration.cs
diff options
context:
space:
mode:
authorOrry Verducci <orry@orryverducci.co.uk>2020-08-10 22:17:13 +0100
committerOrry Verducci <orry@orryverducci.co.uk>2020-08-10 22:17:13 +0100
commit2d6699fd470ba1f0fcabac9df4d5184205e0e351 (patch)
treeaa0f078df01baa798435ae25f3d5ee4945f7f501 /MediaBrowser.Model/Configuration/ServerConfiguration.cs
parentce51775e7426ff4e037d593715395684ebf9b08a (diff)
parentb82a3fee85298a1063069cae5ff4df3029e468b0 (diff)
Merge remote-tracking branch 'upstream/master' into deinterlace-improvements
Diffstat (limited to 'MediaBrowser.Model/Configuration/ServerConfiguration.cs')
-rw-r--r--MediaBrowser.Model/Configuration/ServerConfiguration.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
index a0c21a666..c66091f9d 100644
--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs
+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs
@@ -255,6 +255,16 @@ namespace MediaBrowser.Model.Configuration
public string[] UninstalledPlugins { get; set; }
/// <summary>
+ /// Gets or sets a value indicating whether slow server responses should be logged as a warning.
+ /// </summary>
+ public bool EnableSlowResponseWarning { get; set; }
+
+ /// <summary>
+ /// Gets or sets the threshold for the slow response time warning in ms.
+ /// </summary>
+ public long SlowResponseThresholdMs { get; set; }
+
+ /// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
/// </summary>
public ServerConfiguration()
@@ -359,6 +369,9 @@ namespace MediaBrowser.Model.Configuration
DisabledImageFetchers = new[] { "The Open Movie Database", "TheMovieDb" }
}
};
+
+ EnableSlowResponseWarning = true;
+ SlowResponseThresholdMs = 500;
}
}