working commit
This commit is contained in:
@@ -109,7 +109,13 @@ func (svc *Service) logInterceptor(ctx context.Context, req any, info *grpc.Unar
|
||||
if err == nil {
|
||||
svc.log.Debugf("Request: %s", string(reqData))
|
||||
}
|
||||
return handler(ctx, req)
|
||||
res, err := handler(ctx, req)
|
||||
resData, err := json.Marshal(res)
|
||||
if err == nil {
|
||||
svc.log.Debugf("Response: %s", string(resData))
|
||||
}
|
||||
|
||||
return res, err
|
||||
}
|
||||
|
||||
func (svc *Service) Stop() {
|
||||
|
||||
Reference in New Issue
Block a user