Skip to content

Commit

Permalink
fix: output mount point in error message
Browse files Browse the repository at this point in the history
Fixes #328
  • Loading branch information
dekobon committed Jun 2, 2023
1 parent fda5ae8 commit 5e30468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/metrics/sources/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *Disk) Collect(ctx context.Context, wg *sync.WaitGroup, m chan<- *metric
usage, err := disk.Usage(part.Mountpoint)

if err != nil {
c.logger.Log(fmt.Sprintf("Failed to get disk metrics, %v", err))
c.logger.Log(fmt.Sprintf("Failed to get disk metrics for mount point %s, %v", part.Mountpoint, err))
continue
}

Expand Down

0 comments on commit 5e30468

Please sign in to comment.