mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 16:25:37 +00:00
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:
parent
20262d70bb
commit
c2e529576a
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user