Skip to content

Commit 1893fba

Browse files
authored
Log as Information when failing to bind on localhost for Kestrel. (#30540)
1 parent 78973a2 commit 1893fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Servers/Kestrel/Core/src/LocalhostListenOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ internal override async Task BindAsync(AddressBindContext context)
4141
}
4242
catch (Exception ex) when (!(ex is IOException))
4343
{
44-
context.Logger.LogWarning(0, CoreStrings.NetworkInterfaceBindingFailed, GetDisplayName(), "IPv4 loopback", ex.Message);
44+
context.Logger.LogInformation(0, CoreStrings.NetworkInterfaceBindingFailed, GetDisplayName(), "IPv4 loopback", ex.Message);
4545
exceptions.Add(ex);
4646
}
4747

@@ -52,7 +52,7 @@ internal override async Task BindAsync(AddressBindContext context)
5252
}
5353
catch (Exception ex) when (!(ex is IOException))
5454
{
55-
context.Logger.LogWarning(0, CoreStrings.NetworkInterfaceBindingFailed, GetDisplayName(), "IPv6 loopback", ex.Message);
55+
context.Logger.LogInformation(0, CoreStrings.NetworkInterfaceBindingFailed, GetDisplayName(), "IPv6 loopback", ex.Message);
5656
exceptions.Add(ex);
5757
}
5858

0 commit comments

Comments
 (0)