1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00

app/ship_processor.go: Need to call log.Dup() otherwise things like log.Level will not be copied.

This commit is contained in:
Henrik Hautakoski 2023-08-30 16:00:09 +02:00
parent 16ab7d1fcf
commit fb6cfb9fa6

View file

@ -149,7 +149,7 @@ func (processor *ShipProcessor) processBlock(block *ship.GetBlocksResultV0) {
if block.Traces != nil && len(block.Traces.Elem) > 0 {
for _, trace := range block.Traces.AsTransactionTracesV0() {
logger := log.WithField("tx_id", trace.ID.String())
logger := log.WithField("tx_id", trace.ID.String()).Dup()
transaction := message.TransactionTrace{
ID: trace.ID.String(),