Skip to content

Commit

Permalink
Make ServiceServer log calls to unknown methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMage committed May 8, 2018
1 parent 588963a commit e144258
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SwiftGRPC/Runtime/ServiceServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e144258

Please sign in to comment.