From c2e529576a38a7fc2b1adb2811fe6dee9d7dc6aa Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Fri, 20 Sep 2019 16:23:32 +0800 Subject: [PATCH] Update the error log format Update the erro log format in jobservice Signed-off-by: Wenkai Yin --- src/jobservice/api/authenticator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jobservice/api/authenticator.go b/src/jobservice/api/authenticator.go index d75413683..cced73415 100644 --- a/src/jobservice/api/authenticator.go +++ b/src/jobservice/api/authenticator.go @@ -56,7 +56,7 @@ func (sa *SecretAuthenticator) DoAuth(req *http.Request) error { } if !strings.HasPrefix(h, secretPrefix) { - return fmt.Errorf("'%s' should start with '%s' but got '%s' now", authHeader, secretPrefix, h) + return fmt.Errorf("'%s' should start with '%s'", authHeader, secretPrefix) } secret := strings.TrimSpace(strings.TrimPrefix(h, secretPrefix))