huandu / go-tls

A bit safer approach to implement Thread Local Storage (TLS) for Go 1.7+.
MIT License
162 stars 15 forks source link

Unexpected interaction with runtime.Callers #3

Open dgsb opened 5 years ago

dgsb commented 5 years ago

We have an issuer sirupsen/logrus#904 somehow when a call to tls.ID() we are not able to retrieve the caller. I suspect somehow the call to tls.ID() seems to badly interact with runtime.Callers. Would you mind to give some help ?

huandu commented 5 years ago

Let's discuss this issue in sirupsen/logrus#904.