Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clientv3: importing github.com/coreos/etcd/transport hijacks default logger #7350

Closed
davecheney opened this issue Feb 20, 2017 · 1 comment

Comments

@davecheney
Copy link

davecheney commented Feb 20, 2017

What happened:

importing github.com/coreos/etcd/transport caused capnslog to hijack my logger, (stdlib log package)

What did you expect:

importing github.com/coreos/etcd/transport would not hijack my logger.

Discussion:

Following the WithTLS example here

https://godoc.org/github.com/coreos/etcd/clientv3#ex-Config--WithTLS

requires the github.com/coreos/etcd/pkg/transport package, which has a transitive dependency on github.com/coreos/etcd/pkg/fileutils which itself has a transitive dependency on github.com/coreos/pkg/capnslog. capnslog has an init function which hijacks the default router.

@davecheney
Copy link
Author

Caused by 4a0f922

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant