remove debug logs

This commit is contained in:
Pascal Fischer 2023-03-29 18:27:01 +02:00
parent 4ec6d5d20b
commit 9746a7f61a

View File

@ -1126,8 +1126,6 @@ func (am *DefaultAccountManager) GetAccountFromPAT(token string) (*Account, *Use
return nil, nil, nil, fmt.Errorf("token has wrong length") return nil, nil, nil, fmt.Errorf("token has wrong length")
} }
log.Debugf("Token: %s", token)
prefix := token[:len(PATPrefix)] prefix := token[:len(PATPrefix)]
if prefix != PATPrefix { if prefix != PATPrefix {
return nil, nil, nil, fmt.Errorf("token has wrong prefix") return nil, nil, nil, fmt.Errorf("token has wrong prefix")
@ -1151,10 +1149,8 @@ func (am *DefaultAccountManager) GetAccountFromPAT(token string) (*Account, *Use
if err != nil { if err != nil {
return nil, nil, nil, err return nil, nil, nil, err
} }
log.Debugf("TokenID: %s", tokenID)
user, err := am.Store.GetUserByTokenID(tokenID) user, err := am.Store.GetUserByTokenID(tokenID)
log.Debugf("User: %v", user)
if err != nil { if err != nil {
return nil, nil, nil, err return nil, nil, nil, err
} }