mirror of https://github.com/grpc/grpc-node.git
Add some more logging in the interop server
This commit is contained in:
parent
23e6dd7d14
commit
cacace75a0
|
@ -214,10 +214,12 @@ async function main() {
|
|||
const healthImpl = new HealthImplementation({'': 'NOT_SERVING'});
|
||||
const xdsUpdateHealthServiceImpl = {
|
||||
SetServing(call: grpc.ServerUnaryCall<Empty, Empty__Output>, callback: grpc.sendUnaryData<Empty__Output>) {
|
||||
console.log('SetServing called');
|
||||
healthImpl.setStatus('', 'SERVING');
|
||||
callback(null, {});
|
||||
},
|
||||
SetNotServing(call: grpc.ServerUnaryCall<Empty, Empty__Output>, callback: grpc.sendUnaryData<Empty__Output>) {
|
||||
console.log('SetNotServing called');
|
||||
healthImpl.setStatus('', 'NOT_SERVING');
|
||||
callback(null, {});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue