Update the error log format

Update the erro log format in jobservice

Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
Wenkai Yin 2019-09-20 16:23:32 +08:00
parent 20262d70bb
commit c2e529576a

View File

@ -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))