debug: add logging

This commit is contained in:
Derrick Hammer 2024-01-18 14:38:15 -05:00
parent 12de0342f5
commit 82f34726d6
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -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)))