debug logs
This commit is contained in:
parent
081267a662
commit
cf84b598d0
2 changed files with 12 additions and 0 deletions
|
|
@ -3,10 +3,13 @@ package user
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"merch-api/internal/common"
|
||||
"merch-api/pkg/utils"
|
||||
)
|
||||
|
||||
const serviceLogHeader string = "service |"
|
||||
|
||||
type service struct {
|
||||
repo Repository
|
||||
utils utils.Utils
|
||||
|
|
@ -56,6 +59,7 @@ func (s *service) getPersonalData(ctx context.Context, userUuid string) (*common
|
|||
if userUuid == "" {
|
||||
return nil, errors.New("user uuid is empty")
|
||||
}
|
||||
log.WithField("user_uuid", userUuid).Debugf("%v %v get personal data", pkgLogHeader, serviceLogHeader)
|
||||
|
||||
return s.authDP.GetPersonalData(ctx, userUuid)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue