Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

Commit 7a310a3

Browse files
committed
Reacting to verbose rename
1 parent 8712ba4 commit 7a310a3

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

samples/SelfHostServer/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerfactory)
1717
var listener = app.ServerFeatures.Get<WebListener>();
1818
listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.AllowAnonymous;
1919

20-
loggerfactory.AddConsole(LogLevel.Verbose);
20+
loggerfactory.AddConsole(LogLevel.Debug);
2121

2222
app.Run(async context =>
2323
{

src/Microsoft.AspNet.Server.WebListener/LogHelper.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
using System;
2525
using System.Diagnostics;
26-
using System.Globalization;
2726
using Microsoft.Extensions.Logging;
2827

2928
namespace Microsoft.AspNet.Server.WebListener
@@ -52,21 +51,21 @@ internal static void LogInfo(ILogger logger, string data)
5251
}
5352
}
5453

55-
internal static void LogVerbose(ILogger logger, string data)
54+
internal static void LogDebug(ILogger logger, string data)
5655
{
5756
if (logger == null)
5857
{
5958
Debug.WriteLine(data);
6059
}
6160
else
6261
{
63-
logger.LogVerbose(data);
62+
logger.LogDebug(data);
6463
}
6564
}
6665

67-
internal static void LogVerbose(ILogger logger, string location, Exception exception)
66+
internal static void LogDebug(ILogger logger, string location, Exception exception)
6867
{
69-
LogVerbose(logger, location + "; " + exception.ToString());
68+
LogDebug(logger, location + "; " + exception.ToString());
7069
}
7170

7271
internal static void LogException(ILogger logger, string location, Exception exception)

src/Microsoft.AspNet.Server.WebListener/MessagePump.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private async void ProcessRequestsWorker()
147147
Contract.Assert(_stopping);
148148
if (_stopping)
149149
{
150-
LogHelper.LogVerbose(_logger, "ListenForNextRequestAsync-Stopping", exception);
150+
LogHelper.LogDebug(_logger, "ListenForNextRequestAsync-Stopping", exception);
151151
}
152152
else
153153
{

src/Microsoft.Net.Http.Server/LogHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ internal static void LogInfo(ILogger logger, string data)
5151
}
5252
}
5353

54-
internal static void LogVerbose(ILogger logger, string data)
54+
internal static void LogDebug(ILogger logger, string data)
5555
{
5656
if (logger == null)
5757
{
5858
Debug.WriteLine(data);
5959
}
6060
else
6161
{
62-
logger.LogVerbose(data);
62+
logger.LogDebug(data);
6363
}
6464
}
6565

src/Microsoft.Net.Http.Server/RequestProcessing/Request.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ internal unsafe Request(RequestContext httpContext, NativeRequestContext memoryB
151151

152152
// TODO: Verbose log parameters
153153

154-
if (_requestContext.Logger.IsEnabled(LogLevel.Verbose))
154+
if (_requestContext.Logger.IsEnabled(LogLevel.Debug))
155155
{
156-
RequestContext.Logger.LogVerbose(new ReceiveRequestLogContext(this));
156+
RequestContext.Logger.LogDebug(new ReceiveRequestLogContext(this));
157157
}
158158
}
159159

src/Microsoft.Net.Http.Server/RequestProcessing/Response.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,9 @@ internal unsafe uint SendHeaders(HttpApi.HTTP_DATA_CHUNK[] dataChunks,
356356
_responseState = ResponseState.StartedSending;
357357
var reasonPhrase = GetReasonPhrase(StatusCode);
358358

359-
if (RequestContext.Logger.IsEnabled(LogLevel.Verbose))
359+
if (RequestContext.Logger.IsEnabled(LogLevel.Debug))
360360
{
361-
RequestContext.Logger.LogVerbose(new SendResponseLogContext(this));
361+
RequestContext.Logger.LogDebug(new SendResponseLogContext(this));
362362
}
363363

364364
/*

0 commit comments

Comments
 (0)