Removing duplicate very chatty log for message sending
Change-Id: I400201278dfdf765c7cb762f8ea1d1ae7ce026b2
diff --git a/internal/pkg/openflow/client.go b/internal/pkg/openflow/client.go
index 8be866a..0f5bb30 100644
--- a/internal/pkg/openflow/client.go
+++ b/internal/pkg/openflow/client.go
@@ -273,6 +273,7 @@
logger.Debugw(ctx, "sending-message", log.Fields{
"endpoint": endpoint,
"toEqual": toEqual,
+ "role": connection.role,
"msgType": msgType,
})
err := connection.SendMessage(ctx, message)
diff --git a/internal/pkg/openflow/connection.go b/internal/pkg/openflow/connection.go
index 9a781ec..80baa69 100644
--- a/internal/pkg/openflow/connection.go
+++ b/internal/pkg/openflow/connection.go
@@ -506,10 +506,12 @@
// SendMessage queues a message to be sent to the openflow controller
func (ofc *OFConnection) SendMessage(ctx context.Context, message Message) error {
- logger.Debugw(ctx, "queuing-message", log.Fields{
- "endpoint": ofc.OFControllerEndPoint,
- "role": ofc.role,
- })
+ // Removing this very chatty DEBUG log, it's the same as line 273 of client.go
+ //which has been extended to include the role.
+ //logger.Debugw(ctx, "queuing-message", log.Fields{
+ // "endpoint": ofc.OFControllerEndPoint,
+ // "role": ofc.role,
+ //})
ofc.sendChannel <- message
return nil
}