Skip to content

Commit

Permalink
Merge pull request #114 from utilitywarehouse/add-dev-name-log
Browse files Browse the repository at this point in the history
Add device name in retry log line
  • Loading branch information
ffilippopoulos authored May 26, 2021
2 parents acd6917 + 6966db7 commit 293d3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devicemanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (dm *DeviceManager) renewLoop() {
go func() {
dm.inBackoffLoop = true
duration := dm.backoff.Duration()
logger.Error.Printf("Cannot update lease, will retry in %s: %s", duration, err)
logger.Error.Printf("Cannot update lease for %s, will retry in %s: %s", dm.Name(), duration, err)
select {
case <-time.After(duration):
dm.renewLeaseChan <- struct{}{}
Expand Down

0 comments on commit 293d3d9

Please sign in to comment.