Jianwei Zhang

Results 6 comments of Jianwei Zhang

https://github.com/alibaba/IOC-golang/blob/6fb33a0b1cc440dd75e127085a19db67687f8b4a/aop/proxy.go#L115-L118 这里的实现,如果在before中有panic的话会导致after执行不到,而且panic会被淹没, 请问下这里是怎么考虑的? 是否考虑改为将after放在defer中来确保一定会被执行到,并且有panic的话再继续把panic传递下去?

> https://github.com/alibaba/IOC-golang/blob/6fb33a0b1cc440dd75e127085a19db67687f8b4a/aop/proxy.go#L115-L118 > > 这里的实现,如果在before中有panic的话会导致after执行不到,而且panic会被淹没, 请问下这里是怎么考虑的? 是否考虑改为将after放在defer中来确保一定会被执行到,并且有panic的话再继续把panic传递下去? 已提pr解决,具体见该pr:https://github.com/alibaba/IOC-golang/pull/115

Is there a complete example code? I can't reproduce it according to the above description.

Do you need someone to implement it? If so, you can assign this task to me. @kevwan

I've looked at the logic of the function processFieldValue. It is used to process fields when calling log functions like Debug and Info. For the fields stored in the context...