Skip to content

Commit

Permalink
add err in log
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-saurabh-narkhede committed Oct 9, 2024
1 parent 53c1f56 commit 1beb7db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/pubmatic/openwrap/applovinmax.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,15 @@ func setProfileID(requestBody []byte) ([]byte, string) {
}

if _, err := strconv.Atoi(profIDStr); err != nil {
glog.Errorf("[AppLovinMax] [ProfileID]: %s [Error]: failed to convert app.id to integer", profIDStr)
glog.Errorf("[AppLovinMax] [ProfileID]: %s [Error]: failed to convert app.id to integer %v", profIDStr, err)
return requestBody, ""
}

requestBody = jsonparser.Delete(requestBody, "app", "id")
if newRequestBody, err := jsonparser.Set(requestBody, []byte(profIDStr), "ext", "prebid", "bidderparams", "pubmatic", "wrapper", "profileid"); err == nil {
return newRequestBody, profIDStr
}
glog.Errorf("[AppLovinMax] [ProfileID]: %s [Error]: failed to set profileid in wrapper ", profIDStr)
glog.Errorf("[AppLovinMax] [ProfileID]: %s [Error]: failed to set profileid in wrapper %v", profIDStr, err)
return requestBody, ""
}

Expand Down

0 comments on commit 1beb7db

Please sign in to comment.