Skip to content

Commit

Permalink
tmp: log findall
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Feb 21, 2024
1 parent 9869ce9 commit 0e276b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/service/pet/pet.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func (s *Service) FindAll(in *dto.FindAllPetRequest, isAdmin bool) (result *dto.
Data: nil,
}
}
log.Info().
Str("service", "pet").
Str("module", "petClient.FindAll").Interface("res", res).Msg("")

images, errSvc := s.imageService.FindAll()
if errSvc != nil {
Expand All @@ -63,6 +66,9 @@ func (s *Service) FindAll(in *dto.FindAllPetRequest, isAdmin bool) (result *dto.
imagesList := utils.ImageList(images)
findAllDto := utils.ProtoToDtoList(res.Pets, imagesList, isAdmin)
metaData := utils.MetadataProtoToDto(res.Metadata)
log.Info().
Str("service", "pet").
Str("module", "findAllDto").Interface("dto", findAllDto).Msg("")

return &dto.FindAllPetResponse{
Pets: findAllDto,
Expand Down

0 comments on commit 0e276b2

Please sign in to comment.