Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fixed bug, removed debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kjlyon committed Jul 5, 2017
1 parent aef965a commit 21c99d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion protocol/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (u *udpListener) Start() error {
"peer": fmt.Sprintf("%v:%v", peer.IP.String(), peer.Port),
}).Error(err)
}
return
continue
}
if len(line) > 0 {
line = line[:len(line)-1] // removes trailing '/n'
Expand Down
2 changes: 0 additions & 2 deletions relay/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,10 @@ func (r *relay) StreamMetrics(ctx context.Context, metrics_in chan []plugin.Metr
if metric.Namespace[len(metric.Namespace)-1].Value == "collectd" {
if val, err := metric.Config.GetString("collectdPort"); err == nil {
metrics[idx].Data = val
log.Debug("collectdPort set to: %v", val)
}
} else if metric.Namespace[len(metric.Namespace)-1].Value == "statsd" {
if val, err := metric.Config.GetString("statsdPort"); err == nil {
metrics[idx].Data = val
log.Debug("statsdPort set to: %v", val)
}
}

Expand Down

0 comments on commit 21c99d4

Please sign in to comment.