我的Grpc服务器正在打印很多如下的日志消息:
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/2 POST https://localhost:5002/ServerQuery/OnNewAttacks application/grpc
dbug: Microsoft.AspNetCore.Routing.Matching.DfaMatcher[1001]
3 candidate(s) found for the request path '/ServerQuery/OnNewAttacks'
dbug: Microsoft.AspNetCore.Routing.Matching.DfaMatcher[1005]
Endpoint 'gRPC - /ServerQuery/OnNewAttacks' with route pattern '/ServerQuery/OnNewAttacks' is valid for the request path '/ServerQuery/OnNewAttacks'
dbug: Microsoft.AspNetCore.Routing.Matching.DfaMatcher[1005]
Endpoint 'gRPC - Unimplemented method for ServerQuery' with route pattern 'ServerQuery/{unimplementedMethod}' is valid for the request path '/ServerQuery/OnNewAttacks'
dbug: Microsoft.AspNetCore.Routing.Matching.DfaMatcher[1005]
Endpoint 'gRPC - Unimplemented service' with route pattern '{unimplementedService}/{unimplementedMethod}' is valid for the request path '/ServerQuery/OnNewAttacks'
dbug: Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware[1]
Request matched endpoint 'gRPC - /ServerQuery/OnNewAttacks'
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'gRPC - /ServerQuery/OnNewAttacks'
请注意上述日志语句中的模式,如下所示:
/ServerQuery/OnNewAttacks
ServerQuery/{unimplementedMethod}
{unimplementedService}/{unimplementedMethod}
这些日志正常吗?我可以忽略它们吗?该代码似乎工作正常,并且Visual Studio不会中断。