logging improvments changed log levels for auditing from info to debug
Change-Id: I55c2bb0c77967548cda99dd108d644b80b9ce273
diff --git a/internal/pkg/controller/addflows.go b/internal/pkg/controller/addflows.go
index 7524d00..894127b 100644
--- a/internal/pkg/controller/addflows.go
+++ b/internal/pkg/controller/addflows.go
@@ -53,7 +53,7 @@
// Name to add flow task
func (aft *AddFlowsTask) Name() string {
for _, flow := range aft.flow.SubFlows {
- logger.Infow(ctx, "Flow Cookies", log.Fields{"Cookie": flow.Cookie})
+ logger.Debugw(ctx, "Flow Cookies", log.Fields{"Cookie": flow.Cookie})
}
return "Add Flows Task"
}
@@ -81,7 +81,7 @@
flowsPresent := 0
// First add/delete the flows first locally before passing them to actual device
for _, flow := range aft.flow.SubFlows {
- logger.Infow(ctx, "Flow Mod Request", log.Fields{"Cookie": flow.Cookie, "Oper": aft.flow.Command, "Port": aft.flow.PortID})
+ logger.Debugw(ctx, "Flow Mod Request", log.Fields{"Cookie": flow.Cookie, "Oper": aft.flow.Command, "Port": aft.flow.PortID})
if aft.flow.Command == of.CommandAdd {
flow.State = of.FlowAddPending
if err = aft.device.AddFlow(ctx, flow); err != nil {