diff --git a/routingtable/locRIB/loc_rib.go b/routingtable/locRIB/loc_rib.go index a1701743b1b5d946f958f47e1b163285427a57b0..ff5750c34d226080bea079968becdec410d2704e 100644 --- a/routingtable/locRIB/loc_rib.go +++ b/routingtable/locRIB/loc_rib.go @@ -8,6 +8,7 @@ import ( "github.com/bio-routing/bio-rd/net" "github.com/bio-routing/bio-rd/route" "github.com/bio-routing/bio-rd/routingtable" + "github.com/sirupsen/logrus" ) // LocRIB represents a routing information base @@ -44,6 +45,10 @@ func (a *LocRIB) AddPath(pfx net.Prefix, p *route.Path) error { a.mu.Lock() defer a.mu.Unlock() + logrus.WithFields(map[string]interface{}{ + "Prefix": pfx, + "Route": p, + }).Debug("AddPath to locRIB") routeExisted := false oldRoute := &route.Route{} r := a.rt.Get(pfx) @@ -70,6 +75,10 @@ func (a *LocRIB) RemovePath(pfx net.Prefix, p *route.Path) bool { a.mu.Lock() defer a.mu.Unlock() + logrus.WithFields(map[string]interface{}{ + "Prefix": pfx, + "Route": p, + }).Debug("Remove from locRIB") var oldRoute *route.Route r := a.rt.Get(pfx) if r != nil {