hashicorp / consul-template

Template rendering, notifier, and supervisor for @HashiCorp Consul and Vault data.
https://www.hashicorp.com/
Mozilla Public License 2.0
4.76k stars 781 forks source link

Trace logging printed while not using verbose logging #1068

Open hsmade opened 6 years ago

hsmade commented 6 years ago

https://github.com/hashicorp/consul-template/blob/9172286e18f0526a6a90ddc12113f18a935afa12/watch/view.go#L194

Can we please, please, not do this? When using consul-template as a library, it's impossible to not print this.

pearkes commented 6 years ago

This is reasonable, but not sure if there are more scenarios where we would need to modify the logging behavior or move it out of the packages that are imported for embedded usage. We'd happily accept a PR for it.