From f5823ff0be6ad0f1fdf9ee9a3f60c899075fb401 Mon Sep 17 00:00:00 2001 From: Richard Scothern Date: Wed, 3 Feb 2016 10:42:32 -0800 Subject: [PATCH] Print the correct token expiration time Signed-off-by: Richard Scothern --- registry/client/auth/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/client/auth/session.go b/registry/client/auth/session.go index 6b483c62..50a94a3d 100644 --- a/registry/client/auth/session.go +++ b/registry/client/auth/session.go @@ -285,9 +285,9 @@ func (th *tokenHandler) fetchToken(params map[string]string) (token *tokenRespon } if tr.ExpiresIn < minimumTokenLifetimeSeconds { - logrus.Debugf("Increasing token expiration to: %d seconds", tr.ExpiresIn) // The default/minimum lifetime. tr.ExpiresIn = minimumTokenLifetimeSeconds + logrus.Debugf("Increasing token expiration to: %d seconds", tr.ExpiresIn) } if tr.IssuedAt.IsZero() {