Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshihiro-shu committed Apr 26, 2024
1 parent a74b01e commit 971d549
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/interfaces/api/handler/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/yoshihiro-shu/tech-blog-backend/src/application/usecase"
"github.com/yoshihiro-shu/tech-blog-backend/src/interfaces/api/request"
"github.com/yoshihiro-shu/tech-blog-backend/src/internal/logger"
"go.uber.org/zap"
)

type ProfileHandler interface {
Expand Down Expand Up @@ -33,5 +34,7 @@ func (h profileHandler) GetResume(w http.ResponseWriter, r *http.Request) error
if err != nil {
return request.JSON(w, http.StatusInternalServerError, err.Error())
}
h.logger.Info("Get Resume String", zap.String("htmlContent", string(res)))
h.logger.Info("Get Resume Any", zap.Any("res", res))
return request.JSON(w, http.StatusOK, responseGetResume{string(res)})
}

0 comments on commit 971d549

Please sign in to comment.