Skip to content

Commit

Permalink
fix: drop forgotten debug logs
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Chodur <[email protected]>
  • Loading branch information
FUSAKLA committed Oct 2, 2024
1 parent 8abfffc commit 183f2be
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/validator/promql_expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,11 +602,9 @@ func (h expressionDoesNotUseExperimentalFunctions) Validate(_ unmarshaler.RuleGr
if err != nil {
return []error{fmt.Errorf("failed to parse expression `%s`: %w", rule.Expr, err)}
}
fmt.Println(">>>>>>>>> ", promQl)
forbiddenFuncs := []string{}
parser.Inspect(promQl, func(n parser.Node, _ []parser.Node) error {
if fnCall, ok := n.(*parser.Call); ok {
fmt.Println(fnCall.Func.Name, fnCall.Func.Experimental)
if fnCall.Func != nil && fnCall.Func.Experimental {
forbiddenFuncs = append(forbiddenFuncs, fnCall.Func.Name)
}
Expand Down

0 comments on commit 183f2be

Please sign in to comment.