Skip to content

Commit

Permalink
fix log formatting in csi_hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Mar 28, 2022
1 parent 97dc687 commit 91ead5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/allocrunner/csi_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func (c *csiHook) claimWithRetry(req *structs.CSIVolumeClaimRequest) (*structs.C
}
}
c.logger.Debug(
"volume could not be claimed because it is in use, retrying in %v", backoff)
"volume could not be claimed because it is in use", "retry_in", backoff)
t.Reset(backoff)
}
return &resp, err
Expand Down Expand Up @@ -377,8 +377,7 @@ func (c *csiHook) unmountWithRetry(pair *volumeAndRequest) error {
backoff = c.maxBackoffInterval
}
}
c.logger.Debug(
"volume could not be unmounted, retrying in %v", backoff)
c.logger.Debug("volume could not be unmounted", "retry_in", backoff)
t.Reset(backoff)
}
return nil
Expand Down

0 comments on commit 91ead5d

Please sign in to comment.