Skip to content

Commit

Permalink
tmp: log
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Feb 21, 2024
1 parent 91d167d commit f39c4d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/utils/pet/pet.utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ import (
petConst "github.com/isd-sgcu/johnjud-backend/src/constant/pet"
proto "github.com/isd-sgcu/johnjud-go-proto/johnjud/backend/pet/v1"
imageProto "github.com/isd-sgcu/johnjud-go-proto/johnjud/file/image/v1"
"github.com/rs/zerolog/log"
"gorm.io/gorm"
)

func FilterPet(in *[]*pet.Pet, query *proto.FindAllPetRequest) error {
log.Info().
Str("service", "filter pet").
Str("module", "FilterPet").Msgf("minAge: %d, maxAge: %d", query.MinAge, query.MaxAge)
if query.MaxAge == 0 {
query.MaxAge = math.MaxInt32
}
Expand Down

0 comments on commit f39c4d3

Please sign in to comment.