From 82f34726d6b11eda4a7841614504ac2fc13817ce Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 18 Jan 2024 14:38:15 -0500 Subject: [PATCH] debug: add logging --- api/s5/http.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/s5/http.go b/api/s5/http.go index 2b0990c..abc522d 100644 --- a/api/s5/http.go +++ b/api/s5/http.go @@ -685,6 +685,9 @@ func (h *HttpHandler) AccountPin(jc jape.Context) { return } + h.portal.Logger().Info("CID", zap.String("cidStr", cid)) + h.portal.Logger().Info("hash", zap.String("hash", hex.EncodeToString(decodedCid.Hash.HashBytes()))) + hash := hex.EncodeToString(decodedCid.Hash.HashBytes()) err = h.portal.Accounts().PinByHash(hash, uint(jc.Request.Context().Value(AuthUserIDKey).(uint64)))