use types.BytesToHash to print []byte variables
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
cbaf523b0e
commit
1e3801d105
|
@ -138,7 +138,7 @@ func (s *WhisperMailServer) DeliverMail(peerID []byte, req *whisper.Envelope) {
|
||||||
log.Debug(
|
log.Debug(
|
||||||
"[mailserver:DeliverMail] failed to decode request",
|
"[mailserver:DeliverMail] failed to decode request",
|
||||||
"err", err,
|
"err", err,
|
||||||
"peerID", peerID,
|
"peerID", types.BytesToHash(peerID),
|
||||||
"requestID", req.Hash().String(),
|
"requestID", req.Hash().String(),
|
||||||
)
|
)
|
||||||
payload, err = s.decompositeRequest(peerID, req)
|
payload, err = s.decompositeRequest(peerID, req)
|
||||||
|
@ -147,7 +147,7 @@ func (s *WhisperMailServer) DeliverMail(peerID []byte, req *whisper.Envelope) {
|
||||||
deliveryFailuresCounter.WithLabelValues("validation").Inc()
|
deliveryFailuresCounter.WithLabelValues("validation").Inc()
|
||||||
log.Error(
|
log.Error(
|
||||||
"[mailserver:DeliverMail] request failed validaton",
|
"[mailserver:DeliverMail] request failed validaton",
|
||||||
"peerID", peerID,
|
"peerID", types.BytesToHash(peerID),
|
||||||
"requestID", req.Hash().String(),
|
"requestID", req.Hash().String(),
|
||||||
"err", err,
|
"err", err,
|
||||||
)
|
)
|
||||||
|
@ -394,7 +394,7 @@ func (s *WakuMailServer) DeliverMail(peerID []byte, req *wakucommon.Envelope) {
|
||||||
deliveryFailuresCounter.WithLabelValues("validation").Inc()
|
deliveryFailuresCounter.WithLabelValues("validation").Inc()
|
||||||
log.Error(
|
log.Error(
|
||||||
"[mailserver:DeliverMail] request failed validaton",
|
"[mailserver:DeliverMail] request failed validaton",
|
||||||
"peerID", peerID,
|
"peerID", types.BytesToHash(peerID),
|
||||||
"requestID", req.Hash().String(),
|
"requestID", req.Hash().String(),
|
||||||
"err", err,
|
"err", err,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue