Skip to content

Commit

Permalink
fix(logging): Include collector in warning for unsupported properties
Browse files Browse the repository at this point in the history
  • Loading branch information
pdf committed Aug 18, 2021
1 parent 5d5c6eb commit 1760a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collector/dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (c *datasetCollector) updateDatasetMetrics(ch chan<- metric, pool string, d
for k, v := range dataset.Properties {
prop, err := datasetProperties.find(k)
if err != nil {
_ = level.Warn(c.log).Log(`msg`, propertyUnsupportedMsg, `help`, helpIssue, `property`, k, `err`, err)
_ = level.Warn(c.log).Log(`msg`, propertyUnsupportedMsg, `help`, helpIssue, `collector`, c.kind, `property`, k, `err`, err)
}
if err = prop.push(ch, v, labelValues...); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion collector/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (c *poolCollector) updatePoolMetrics(ch chan<- metric, pool string) error {
for k, v := range p.Properties {
prop, err := poolProperties.find(k)
if err != nil {
_ = level.Warn(c.log).Log(`msg`, propertyUnsupportedMsg, `help`, helpIssue, `property`, k, `err`, err)
_ = level.Warn(c.log).Log(`msg`, propertyUnsupportedMsg, `help`, helpIssue, `collector`, `pool`, `property`, k, `err`, err)
}
if err = prop.push(ch, v, labelValues...); err != nil {
return err
Expand Down

0 comments on commit 1760a4a

Please sign in to comment.