Reduce bridge logging (#1918)

This commit is contained in:
Adam Babik 2020-03-26 21:33:47 +01:00 committed by GitHub
parent a5874fdb21
commit f9ba05d3ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -67,7 +67,10 @@ func (b *Bridge) Start() {
return
case env := <-b.wakuIn:
shhEnvelope := (*whisper.Envelope)(unsafe.Pointer(env)) // nolint: gosec
b.logger.Info("received whisper envelope from waku", zap.Any("envelope", shhEnvelope))
b.logger.Debug(
"received whisper envelope from waku",
zap.ByteString("hash", shhEnvelope.Hash().Bytes()),
)
b.whisperOut <- shhEnvelope
}
}
@ -82,7 +85,10 @@ func (b *Bridge) Start() {
return
case env := <-b.whisperIn:
wakuEnvelope := (*waku.Envelope)(unsafe.Pointer(env)) // nolint: gosec
b.logger.Info("received waku envelope from whisper", zap.Any("envelope", wakuEnvelope))
b.logger.Debug(
"received waku envelope from whisper",
zap.ByteString("hash", wakuEnvelope.Hash().Bytes()),
)
b.wakuOut <- wakuEnvelope
}
}