Skip to content

Commit

Permalink
add logging to quotation endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jppade committed Dec 14, 2023
1 parent 356b422 commit 83cc26a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/http/restServer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.19

require (
github.com/appleboy/gin-jwt/v2 v2.6.4
github.com/diadata-org/diadata v1.4.413
github.com/diadata-org/diadata v1.4.416
github.com/gin-contrib/cache v1.1.0
github.com/gin-gonic/contrib v0.0.0-20201101042839-6a891bf89f19
github.com/gin-gonic/gin v1.8.1
Expand Down
4 changes: 4 additions & 0 deletions pkg/http/restServer/diaApi/diaApi.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ func (env *Env) GetQuotation(c *gin.Context) {
restApi.SendError(c, http.StatusNotFound, errors.New("no quotation available"))
return
}
log.Info("Print top assets for ", symbol)
for _, asset := range assets {
log.Info(asset)
}
topAsset := assets[0]
quotation, err := env.DataStore.GetAssetQuotation(topAsset, timestamp)
if err != nil {
Expand Down

0 comments on commit 83cc26a

Please sign in to comment.