From 6966db71ac5b27a6637b4eecc8ac2acd00827c31 Mon Sep 17 00:00:00 2001 From: Foivos Filippopoulos Date: Wed, 26 May 2021 10:40:31 +0100 Subject: [PATCH] Add device name in retry log line --- devicemanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemanager.go b/devicemanager.go index c0fa408..071c673 100644 --- a/devicemanager.go +++ b/devicemanager.go @@ -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{}{}