Review feedback

This commit is contained in:
Alfonso Acosta
2016-09-20 16:50:29 +00:00
parent 193bfec50b
commit c5ac315b38
7 changed files with 48 additions and 26 deletions
+1 -2
View File
@@ -145,10 +145,9 @@ func probeMain(flags probeFlags) {
p.AddReporter(process.NewReporter(processCache, hostID, process.GetDeltaTotalJiffies))
}
// TODO: make the snooper optional
dnsSnooper, err := endpoint.NewDNSSnooper()
if err != nil {
log.Errorf("Fail to start DNS snooper: nodes for external services will be less accurate: %s", err)
log.Errorf("Failed to start DNS snooper: nodes for external services will be less accurate: %s", err)
} else {
defer dnsSnooper.Stop()
}