Grp c отладочные сообщения, рассылающие спам {unimplementedService} - PullRequest
0 голосов
/ 10 июля 2020

My Grp c сервер печатает много сообщений журнала, например:

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}

Are эти логи нормальные? Могу я их просто игнорировать? Код вроде работает нормально, и Visual Studio не ломается.

...