From f39c4d35732e608ba26a942f1cadabb0d9d74efe Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Thu, 22 Feb 2024 01:01:58 +0700 Subject: [PATCH] tmp: log --- src/app/utils/pet/pet.utils.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/utils/pet/pet.utils.go b/src/app/utils/pet/pet.utils.go index df8a5f9..5a64bbf 100644 --- a/src/app/utils/pet/pet.utils.go +++ b/src/app/utils/pet/pet.utils.go @@ -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 }