Skip to content

Commit

Permalink
Output mount point in error message (#329)
Browse files Browse the repository at this point in the history
Fixes #328
  • Loading branch information
dekobon authored Jun 8, 2023
1 parent f415697 commit e8d45a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e8d45a3

Please sign in to comment.