@@ -823,7 +823,7 @@ func (ks *KongState) fillCustomEntityForeignFields(
823
823
if ! ok {
824
824
return
825
825
}
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 )
827
827
828
828
// Traverse through the fields of the entity and fill the "foreign" fields with IDs of referring entities.
829
829
// Note: this procedure will make referred services'/routes'/consumers' ID to be filled.
@@ -841,7 +841,7 @@ func (ks *KongState) fillCustomEntityForeignFields(
841
841
parsedEntity [fieldName ] = map [string ]interface {}{
842
842
"id" : serviceIDs [0 ],
843
843
}
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 ])
845
845
}
846
846
case string (kong .EntityTypeRoutes ):
847
847
routeIDs := lo .FilterMap (rels .Routes , func (r * Route , _ int ) (string , bool ) {
@@ -854,7 +854,7 @@ func (ks *KongState) fillCustomEntityForeignFields(
854
854
parsedEntity [fieldName ] = map [string ]interface {}{
855
855
"id" : routeIDs [0 ],
856
856
}
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 ])
858
858
}
859
859
case string (kong .EntityTypeConsumers ):
860
860
consumerIDs := lo .FilterMap (rels .Consumers , func (c * Consumer , _ int ) (string , bool ) {
@@ -867,7 +867,7 @@ func (ks *KongState) fillCustomEntityForeignFields(
867
867
parsedEntity [fieldName ] = map [string ]interface {}{
868
868
"id" : consumerIDs [0 ],
869
869
}
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 ])
871
871
}
872
872
}
873
873
}
0 commit comments