wuYin opened a new pull request #449:
URL: https://github.com/apache/pulsar-client-go/pull/449
### Issue
logrusWrapper formater shrink `[]interface{}` args into a `interface{}`,
causes logrus formatter missing arguments.
format case
```
ls.log.Debugf("Successfully looked up topic{%s} on broker. %s / %s - Use
proxy: %t",
topic, lr.GetBrokerServiceUrl(), lr.GetBrokerServiceUrlTls(),
lr.GetProxyThroughServiceUrl())
```
logging looks like:
```
DEBU[0000] Successfully looked up topic{[persistent://public/default/topic-1
pulsar://localhost:6651 %!s(bool=false)]} on broker. %!s(MISSING) /
%!s(MISSING) - Use proxy: %!t(MISSING) serviceURL="pulsar://localhost:6650"
```
### Motivation
Fix logrus formatter missing arguments.
### Modifications
Expand `[]interface{}` before invoke logrus logger, pass them to logrus
intact.
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
----------------------------------------------------------------
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]