소스 검색

Make ServiceServer log calls to unknown methods.

Daniel Alm 7 년 전
부모
커밋
e1442587fe
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Sources/SwiftGRPC/Runtime/ServiceServer.swift

+ 1 - 0
Sources/SwiftGRPC/Runtime/ServiceServer.swift

@@ -84,6 +84,7 @@ open class ServiceServer {
             try handler.sendStatus(responseStatus)
           }
         } catch _ as HandleMethodError {
+          print("ServiceServer call to unknown method '\(unwrappedMethod)'")
           if !handler.completionQueue.hasBeenShutdown {
             // The method is not implemented by the service - send a status saying so.
             try handler.call.perform(OperationGroup(