From bd819a5e818af66a3dff8528794c5063ab012426 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 16 Aug 2016 21:59:43 +0200 Subject: [PATCH] Fix panic --- src/restic/lock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restic/lock.go b/src/restic/lock.go index ed1593444..5628e7577 100644 --- a/src/restic/lock.go +++ b/src/restic/lock.go @@ -188,7 +188,7 @@ var staleTimeout = 30 * time.Minute // older than 30 minutes or if it was created on the current machine and the // process isn't alive any more. func (l *Lock) Stale() bool { - debug.Log("Lock.Stale", "testing if lock %v for process %d is stale", l.lockID.Str(), l.PID) + debug.Log("Lock.Stale", "testing if lock %v for process %d is stale", l, l.PID) if time.Now().Sub(l.Time) > staleTimeout { debug.Log("Lock.Stale", "lock is stale, timestamp is too old: %v\n", l.Time) return true