debug logs
This commit is contained in:
parent
081267a662
commit
cf84b598d0
2 changed files with 12 additions and 0 deletions
|
|
@ -3,11 +3,14 @@ package authCheck
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"merch-api/internal/common"
|
||||
verifyV1 "merch-api/pkg/verify/v1"
|
||||
"time"
|
||||
)
|
||||
|
||||
const serviceLogHeader = "service |"
|
||||
|
||||
type service struct {
|
||||
client verifyV1.AuthServiceClient
|
||||
timeout time.Duration
|
||||
|
|
@ -49,6 +52,11 @@ func (s *service) GetPersonalData(ctx context.Context, userUuid string) (*common
|
|||
runCtx, cancel := context.WithTimeout(ctx, s.timeout)
|
||||
defer cancel()
|
||||
|
||||
log.WithFields(log.Fields{
|
||||
"userUuid": userUuid,
|
||||
"serviceId": s.serviceId,
|
||||
}).Debugf("%v %v get personal data")
|
||||
|
||||
response, err := s.client.GetPersonalInfo(runCtx, &verifyV1.PersonalRequest{
|
||||
UserUuid: userUuid,
|
||||
ServiceId: s.serviceId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue