We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f757184 commit c6c5c3aCopy full SHA for c6c5c3a
internal/common/log.go
@@ -112,6 +112,15 @@ func DecodeLogs(chainId string, logs []Log) []*DecodedLog {
112
for idx, eventLog := range logs {
113
wg.Add(1)
114
go func(idx int, eventLog Log, mut *sync.Mutex) {
115
+ defer func() {
116
+ if err := recover(); err != nil {
117
+ log.Error().
118
+ Any("chainId", chainId).
119
+ Any("Logs", logs).
120
+ Err(fmt.Errorf("%v", err)).
121
+ Msg("Caught panic in DecodeLogs, possibly in decodeLogFunc")
122
+ }
123
+ }()
124
defer wg.Done()
125
decodedLog := decodeLogFunc(&eventLog, mut)
126
decodedLogs[idx] = decodedLog
0 commit comments