Explorar o código

Make ServiceServer log calls to unknown methods.

Daniel Alm %!s(int64=7) %!d(string=hai) anos
pai
achega
e1442587fe
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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(