diff options
Diffstat (limited to 'util.go')
-rw-r--r-- | util.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -40,8 +40,9 @@ func consulToDN(key string) (string, string) { } dn = cpath + dn } - log.Printf("Consul key %s does not end with attribute=something", key) - panic("TODO don't panic handle this") + // TODO don't panic, handle this + log.Panicf("Consul key %s does not end with attribute=something", key) + panic("unreachable") } func parseValue(value []byte) ([]string, error) { @@ -64,7 +65,6 @@ func parseConsulResult(data []*consul.KVPair) (map[string]Entry, error) { aggregator := map[string]Entry{} for _, kv := range data { - log.Printf("(parseConsulResult) %s %s", kv.Key, string(kv.Value)) dn, attr := consulToDN(kv.Key) if _, exists := aggregator[dn]; !exists { aggregator[dn] = Entry{} |