mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
more service stack logging
This commit is contained in:
parent
44ff7167f0
commit
dabf257778
1 changed files with 43 additions and 43 deletions
|
@ -105,6 +105,8 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
DefaultRedirectPath = defaultRedirectpath;
|
||||
_logger = logger;
|
||||
|
||||
ServiceStack.Logging.LogManager.LogFactory = new NLogFactory();
|
||||
|
||||
EndpointHostConfig.Instance.ServiceStackHandlerFactoryPath = null;
|
||||
EndpointHostConfig.Instance.MetadataRedirectPath = "metadata";
|
||||
|
||||
|
@ -136,8 +138,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
Plugins.Add(new SwaggerFeature());
|
||||
Plugins.Add(new CorsFeature());
|
||||
|
||||
ServiceStack.Logging.LogManager.LogFactory = new NLogFactory();
|
||||
|
||||
ResponseFilters.Add((req, res, dto) =>
|
||||
{
|
||||
var exception = dto as Exception;
|
||||
|
|
Loading…
Reference in a new issue