mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/promrelabel: stop emitting DEBUG log lines when parsing if
expressions
These lines were accidentally left in the commit 62651570bb
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4635
This commit is contained in:
parent
b4c79fc606
commit
c6154f8f52
2 changed files with 1 additions and 3 deletions
|
@ -24,6 +24,7 @@ The following `tip` changes can be tested by building VictoriaMetrics components
|
||||||
|
|
||||||
## tip
|
## tip
|
||||||
|
|
||||||
|
* BUGFIX: remove `DEBUG` logging when parsing `if` filters inside [relabeling rules](https://docs.victoriametrics.com/vmagent.html#relabeling-enhancements) and when parsing `match` filters inside [stream aggregation rules](https://docs.victoriametrics.com/stream-aggregation.html).
|
||||||
* BUGFIX: properly replace `:` chars in label names with `_` when `-usePromCompatibleNaming` command-line flag is passed to `vmagent`, `vminsert` or single-node VictoriaMetrics. This addresses [this comment](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3113#issuecomment-1275077071).
|
* BUGFIX: properly replace `:` chars in label names with `_` when `-usePromCompatibleNaming` command-line flag is passed to `vmagent`, `vminsert` or single-node VictoriaMetrics. This addresses [this comment](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3113#issuecomment-1275077071).
|
||||||
* BUGFIX: [vmbackup](https://docs.victoriametrics.com/vmbackup.html): correctly check if specified `-dst` belongs to specified `-storageDataPath`. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4837).
|
* BUGFIX: [vmbackup](https://docs.victoriametrics.com/vmbackup.html): correctly check if specified `-dst` belongs to specified `-storageDataPath`. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4837).
|
||||||
* BUGFIX: [vmctl](https://docs.victoriametrics.com/vmctl.html): don't interrupt the migration process if no metrics were found for a specific tenant. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4796).
|
* BUGFIX: [vmctl](https://docs.victoriametrics.com/vmctl.html): don't interrupt the migration process if no metrics were found for a specific tenant. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4796).
|
||||||
|
|
|
@ -80,7 +80,6 @@ func (ie *IfExpression) UnmarshalYAML(f func(interface{}) error) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ie *IfExpression) unmarshalFromInterface(v interface{}) error {
|
func (ie *IfExpression) unmarshalFromInterface(v interface{}) error {
|
||||||
logger.Infof("DEBUG: unmarshaling ifExpr from %#v", v)
|
|
||||||
ies := ie.ies[:0]
|
ies := ie.ies[:0]
|
||||||
switch t := v.(type) {
|
switch t := v.(type) {
|
||||||
case string:
|
case string:
|
||||||
|
@ -89,7 +88,6 @@ func (ie *IfExpression) unmarshalFromInterface(v interface{}) error {
|
||||||
return fmt.Errorf("unexpected `match` option: %w", err)
|
return fmt.Errorf("unexpected `match` option: %w", err)
|
||||||
}
|
}
|
||||||
ies = append(ies, ieLocal)
|
ies = append(ies, ieLocal)
|
||||||
logger.Infof("DEBUG: unmarshaled ifExpr from %#v to %s", t, ieLocal)
|
|
||||||
case []interface{}:
|
case []interface{}:
|
||||||
for _, x := range t {
|
for _, x := range t {
|
||||||
s, ok := x.(string)
|
s, ok := x.(string)
|
||||||
|
@ -102,7 +100,6 @@ func (ie *IfExpression) unmarshalFromInterface(v interface{}) error {
|
||||||
}
|
}
|
||||||
ies = append(ies, ieLocal)
|
ies = append(ies, ieLocal)
|
||||||
}
|
}
|
||||||
logger.Infof("DEBUG: unmarshaled ifExpr from %#v to %s", t, ies)
|
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("unexpected `match` type; got %#v; want string or an array of strings", t)
|
return fmt.Errorf("unexpected `match` type; got %#v; want string or an array of strings", t)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue