[VOL-3489] Sending packet-in/out only to the master instance
Change-Id: Ibaf23d4d604f0d70547df7971792af322bc9e317
diff --git a/internal/pkg/openflow/connection.go b/internal/pkg/openflow/connection.go
index 3908aeb..08f848a 100644
--- a/internal/pkg/openflow/connection.go
+++ b/internal/pkg/openflow/connection.go
@@ -492,7 +492,10 @@
// SendMessage queues a message to be sent to the openflow controller
func (ofc *OFConnection) SendMessage(ctx context.Context, message Message) error {
- logger.Debug(ctx, "queuing-message")
+ logger.Debugw(ctx, "queuing-message", log.Fields{
+ "endpoint": ofc.OFControllerEndPoint,
+ "role": ofc.role,
+ })
ofc.sendChannel <- message
return nil
}