mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
add advanced setting
This commit is contained in:
@@ -8,6 +8,7 @@ using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Controller.Configuration;
|
||||
using MediaBrowser.Model.Logging;
|
||||
|
||||
namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||
@@ -51,6 +52,10 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||
|
||||
data["plugins"] = string.Join(",", _applicationHost.Plugins.Select(i => i.Id).ToArray());
|
||||
|
||||
var logErrors = false;
|
||||
#if DEBUG
|
||||
logErrors = true;
|
||||
#endif
|
||||
var options = new HttpRequestOptions
|
||||
{
|
||||
Url = MbAdminUrl + "service/registration/ping",
|
||||
@@ -59,7 +64,8 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||
// Seeing block length errors
|
||||
EnableHttpCompression = false,
|
||||
|
||||
LogRequest = false
|
||||
LogRequest = false,
|
||||
LogErrors = logErrors
|
||||
};
|
||||
|
||||
options.SetPostData(data);
|
||||
@@ -95,6 +101,11 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||
{ "platform", app.DeviceName },
|
||||
};
|
||||
|
||||
var logErrors = false;
|
||||
|
||||
#if DEBUG
|
||||
logErrors = true;
|
||||
#endif
|
||||
var options = new HttpRequestOptions
|
||||
{
|
||||
Url = MbAdminUrl + "service/registration/ping",
|
||||
@@ -103,7 +114,8 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||
// Seeing block length errors
|
||||
EnableHttpCompression = false,
|
||||
|
||||
LogRequest = false
|
||||
LogRequest = false,
|
||||
LogErrors = logErrors
|
||||
};
|
||||
|
||||
options.SetPostData(data);
|
||||
|
||||
Reference in New Issue
Block a user