From d555a52ad1dba9d49483c8cd8b2cbbf45a368d7a Mon Sep 17 00:00:00 2001 From: DanB Date: Mon, 18 Mar 2019 10:37:35 +0100 Subject: [PATCH] Guardian reporting force timeouts for locks also for wrapper --- guardian/guardian.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guardian/guardian.go b/guardian/guardian.go index f8f26af30..d4489fa9e 100644 --- a/guardian/guardian.go +++ b/guardian/guardian.go @@ -146,6 +146,7 @@ func (gl *GuardianLocker) Guard(handler func() (interface{}, error), timeout tim case err = <-errChan: case reply = <-rplyChan: case <-time.After(timeout): + utils.Logger.Warning(fmt.Sprintf(" force timing-out locks: %+v", lockIDs)) } } else { // a bit dangerous but wait till handler finishes select { @@ -168,7 +169,7 @@ func (gl *GuardianLocker) GuardIDs(refID string, timeout time.Duration, lkIDs .. time.Sleep(timeout) lkIDs := gl.unlockWithReference(retRefID) if len(lkIDs) != 0 { - utils.Logger.Warning(fmt.Sprintf(" WARNING: force timing-out locks: %+v", lkIDs)) + utils.Logger.Warning(fmt.Sprintf(" force timing-out locks: %+v", lkIDs)) } }() }