updated to use a common logging library and enable log level configuration
Change-Id: Ib473615f25318c3b40cd6cf3bd49248e8a3d4fb1
diff --git a/switchq/vendors.go b/switchq/vendors.go
index d2a0cc8..c0de108 100644
--- a/switchq/vendors.go
+++ b/switchq/vendors.go
@@ -2,9 +2,8 @@
import (
"encoding/json"
- "log"
- "strings"
"net/http"
+ "strings"
)
type Vendors interface {
@@ -43,7 +42,7 @@
for _, rec := range data {
v.Vendors[rec.Prefix] = rec
}
- log.Printf("[debug] %v", v.Vendors)
+ log.Debugf("known vendors %+v", v.Vendors)
return &v, nil
}