Log error in mailserver (#1644)

This commit is contained in:
Adam Babik 2019-10-15 16:33:58 +02:00 committed by GitHub
parent 019f124f6b
commit c74c36742e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -242,7 +242,8 @@ func (s *WMailServer) DeliverMail(peer *whisper.Peer, request *whisper.Envelope)
requestValidationErrorsCounter.Inc(1)
log.Error("[mailserver:DeliverMail] request failed validaton",
"peerID", peerID,
"requestID", requestID)
"requestID", requestID,
"err", err)
s.trySendHistoricMessageErrorResponse(peer, request, err)
return
}