Skip to content

Commit

Permalink
Lower log level
Browse files Browse the repository at this point in the history
  • Loading branch information
andy89923 committed Feb 27, 2024
1 parent 06a7bea commit fbb727f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/sbi/producer/access_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ import (

func HandleAccessTokenRequest(request *httpwrapper.Request) *httpwrapper.Response {
// Param of AccessTokenRsp
logger.AccTokenLog.Infoln("Handle AccessTokenRequest")
logger.AccTokenLog.Debugln("Handle AccessTokenRequest")

accessTokenReq := request.Body.(models.AccessTokenReq)

response, errResponse := AccessTokenProcedure(accessTokenReq)

if errResponse != nil {
return httpwrapper.NewResponse(http.StatusBadRequest, nil, errResponse)
} else if response != nil {
Expand All @@ -45,7 +44,7 @@ func HandleAccessTokenRequest(request *httpwrapper.Request) *httpwrapper.Respons
func AccessTokenProcedure(request models.AccessTokenReq) (
*models.AccessTokenRsp, *models.AccessTokenErr,
) {
logger.AccTokenLog.Infoln("In AccessTokenProcedure")
logger.AccTokenLog.Debugln("In AccessTokenProcedure")

var expiration int32 = 1000
scope := request.Scope
Expand Down

0 comments on commit fbb727f

Please sign in to comment.