Skip to content

Commit aa84635

Browse files
committed
chore(kongstate) update logging var
Convert some logs to use the logging package. These lines were moved elsewhere in a feature commit in main, so they weren't updated by 6dd9031 in the 3.2.x branch.
1 parent c0f4ff1 commit aa84635

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/dataplane/kongstate/kongstate.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ func (ks *KongState) fillCustomEntityForeignFields(
823823
if !ok {
824824
return
825825
}
826-
logger.V(util.DebugLevel).Info("fetch references via plugin", "plugin_key", pluginKey)
826+
logger.V(logging.DebugLevel).Info("fetch references via plugin", "plugin_key", pluginKey)
827827

828828
// Traverse through the fields of the entity and fill the "foreign" fields with IDs of referring entities.
829829
// Note: this procedure will make referred services'/routes'/consumers' ID to be filled.
@@ -841,7 +841,7 @@ func (ks *KongState) fillCustomEntityForeignFields(
841841
parsedEntity[fieldName] = map[string]interface{}{
842842
"id": serviceIDs[0],
843843
}
844-
logger.V(util.DebugLevel).Info("added ref to service", "service_id", serviceIDs[0])
844+
logger.V(logging.DebugLevel).Info("added ref to service", "service_id", serviceIDs[0])
845845
}
846846
case string(kong.EntityTypeRoutes):
847847
routeIDs := lo.FilterMap(rels.Routes, func(r *Route, _ int) (string, bool) {
@@ -854,7 +854,7 @@ func (ks *KongState) fillCustomEntityForeignFields(
854854
parsedEntity[fieldName] = map[string]interface{}{
855855
"id": routeIDs[0],
856856
}
857-
logger.V(util.DebugLevel).Info("added ref to route", "route_id", routeIDs[0])
857+
logger.V(logging.DebugLevel).Info("added ref to route", "route_id", routeIDs[0])
858858
}
859859
case string(kong.EntityTypeConsumers):
860860
consumerIDs := lo.FilterMap(rels.Consumers, func(c *Consumer, _ int) (string, bool) {
@@ -867,7 +867,7 @@ func (ks *KongState) fillCustomEntityForeignFields(
867867
parsedEntity[fieldName] = map[string]interface{}{
868868
"id": consumerIDs[0],
869869
}
870-
logger.V(util.DebugLevel).Info("added ref to consumer", "consumer_id", consumerIDs[0])
870+
logger.V(logging.DebugLevel).Info("added ref to consumer", "consumer_id", consumerIDs[0])
871871
}
872872
}
873873
}

0 commit comments

Comments
 (0)