Skip to content

Commit ab9c7d5

Browse files
committed
Small refactoring to WebScriptHostHttpRoutesManager
1 parent 4909d7b commit ab9c7d5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/WebJobs.Script.WebHost/WebScriptHostHttpRoutesManager.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ namespace Microsoft.Azure.WebJobs.Script.WebHost
1313
{
1414
internal sealed partial class WebScriptHostHttpRoutesManager : IHttpRoutesManager
1515
{
16-
private static readonly string[] _allMethods = new string[] { "all" };
1716
private readonly IOptions<HttpOptions> _httpOptions;
1817
private readonly IWebJobsRouter _router;
1918
private readonly ILoggerFactory _loggerFactory;
@@ -87,14 +86,13 @@ public void InitializeHttpFunctionRoutes(IScriptJobHost host)
8786

8887
_router.AddFunctionRoutes(functionRouter, proxyRouter);
8988

90-
ILogger logger = _loggerFactory.CreateLogger("Host.HttpRoutes");
89+
ILogger logger = _loggerFactory.CreateLogger<WebScriptHostHttpRoutesManager>();
9190
logger.LogInformation(routesLogBuilder.ToString());
9291
}
9392

9493
private void LogRouteMap(StringBuilder builder, string functionName, string route, string[] methods, bool isProxy, string prefix)
9594
{
96-
methods = methods ?? _allMethods;
97-
string methodList = string.Join(',', methods);
95+
string methodList = methods is null ? "all" : string.Join(',', methods);
9896

9997
if (isProxy)
10098
{

0 commit comments

Comments
 (0)