debug logs

This commit is contained in:
nquidox 2026-04-01 18:35:08 +03:00
parent 081267a662
commit cf84b598d0
2 changed files with 12 additions and 0 deletions

View file

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