[Blazor] Fix #9089 don't log mundane stuff at info level (#9098)

Reduce the noise of some logging that's really
only useful for troubleshooting/debugging.
This commit is contained in:
Ryan Nowak 2019-04-04 21:45:33 -07:00 committed by Javier Calvarro Nelson
parent 1c3f890240
commit b142daeccb
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ namespace Microsoft.AspNetCore.Components.Server.Circuits
typeof(RemoteUriHelper).Assembly.GetName().Name,
nameof(NotifyLocationChanged));
_logger.LogInformation($"{nameof(RemoteUriHelper)} initialized.");
_logger.LogDebug($"{nameof(RemoteUriHelper)} initialized.");
}
/// <summary>

View File

@ -73,7 +73,7 @@ namespace Microsoft.AspNetCore.Components.Server
var endpointFeature = Context.GetHttpContext().Features.Get<IEndpointFeature>();
var endpoint = endpointFeature?.Endpoint;
_logger.LogInformation($"No components registered in the current endpoint '{endpoint.DisplayName}'.");
_logger.LogDebug($"No components registered in the current endpoint '{endpoint.DisplayName}'.");
// No components preregistered so return. This is totally normal if the components were prerendered.
return null;
@ -131,7 +131,7 @@ namespace Microsoft.AspNetCore.Components.Server
/// </summary>
public void OnRenderCompleted(long renderId, string errorMessageOrNull)
{
_logger.LogInformation($"Received confirmation for batch {renderId}.");
_logger.LogDebug($"Received confirmation for batch {renderId}.");
EnsureCircuitHost().Renderer.OnRenderCompleted(renderId, errorMessageOrNull);
}