Skip to content

Commit

Permalink
Merge pull request #418 from fabiolb/issue-408-log-status-change-as-d…
Browse files Browse the repository at this point in the history
…ebug

Issue #408: log consul state changes as DEBUG
  • Loading branch information
magiconair committed Jan 5, 2018
2 parents c30d642 + 6f707ff commit 46a1dc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 46a1dc9

Please sign in to comment.