wujimin commented on issue #2393:
URL:
https://github.com/apache/servicecomb-java-chassis/issues/2393#issuecomment-847211428
`根据响应体写操作日志`,应该不是个好主意
原因:
* 这意味着,拿着序列化好的应答串,重新反序列为map,再决策的意思
* 写日志的序列化,与应答的序列化需求,应该是有差异的
比如,敏感信息不可以写到日志中去
一个可能的方案:
* 建立公共脱敏机制,比如在敏感字段上打上annotation,声明需要如何脱敏
脱敏逻辑只在写日志序列化时生效
* 使用aop,或在ProducerOperationHandler
之前加一个handler,均可拿到Response对象,里面就有controller return的数据模型
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]