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

Issue #408: log consul state changes as DEBUG #418

Merged
merged 1 commit into from
Jan 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cert/consul_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func watchKV(client *api.Client, key string, pemBlocks chan map[string][]byte) {
}

if !reflect.DeepEqual(value, lastValue) || index != lastIndex {
log.Printf("[INFO] cert: Certificate index changed to #%d", index)
log.Printf("[DEBUG] cert: Certificate index changed to #%d", index)
pemBlocks <- value
lastValue, lastIndex = value, index
}
Expand Down
2 changes: 1 addition & 1 deletion registry/consul/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func watchKV(client *api.Client, path string, config chan string) {
}

if value != lastValue || index != lastIndex {
log.Printf("[INFO] consul: Manual config changed to #%d", index)
log.Printf("[DEBUG] consul: Manual config changed to #%d", index)
config <- value
lastValue, lastIndex = value, index
}
Expand Down
2 changes: 1 addition & 1 deletion registry/consul/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func watchServices(client *api.Client, tagPrefix string, status []string, config
continue
}

log.Printf("[INFO] consul: Health changed to #%d", meta.LastIndex)
log.Printf("[DEBUG] consul: Health changed to #%d", meta.LastIndex)
config <- servicesConfig(client, passingServices(checks, status), tagPrefix)
lastIndex = meta.LastIndex
}
Expand Down