Add some more logging in the interop server

This commit is contained in:
Michael Lumish 2025-01-30 10:54:57 -08:00
parent 23e6dd7d14
commit cacace75a0
1 changed files with 2 additions and 0 deletions

View File

@ -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, {});
}