mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
less logs (#6813)
This commit is contained in:
parent
145f689e78
commit
c31824ee17
2
go.mod
2
go.mod
@ -3,7 +3,7 @@ module github.com/ledgerwatch/erigon
|
|||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/ledgerwatch/erigon-lib v0.0.0-20230209041907-52c880a50ddc
|
github.com/ledgerwatch/erigon-lib v0.0.0-20230209052732-dce672859cf3
|
||||||
github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230120022649-cd9409a200da
|
github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230120022649-cd9409a200da
|
||||||
github.com/ledgerwatch/log/v3 v3.7.0
|
github.com/ledgerwatch/log/v3 v3.7.0
|
||||||
github.com/ledgerwatch/secp256k1 v1.0.0
|
github.com/ledgerwatch/secp256k1 v1.0.0
|
||||||
|
4
go.sum
4
go.sum
@ -556,8 +556,8 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
|||||||
github.com/kylelemons/godebug v0.0.0-20170224010052-a616ab194758 h1:0D5M2HQSGD3PYPwICLl+/9oulQauOuETfgFvhBDffs0=
|
github.com/kylelemons/godebug v0.0.0-20170224010052-a616ab194758 h1:0D5M2HQSGD3PYPwICLl+/9oulQauOuETfgFvhBDffs0=
|
||||||
github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c=
|
github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c=
|
||||||
github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8=
|
github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8=
|
||||||
github.com/ledgerwatch/erigon-lib v0.0.0-20230209041907-52c880a50ddc h1:4zenW7DdnbnVc58STGobDbqMb4PToeN5w8xIUw7pgtA=
|
github.com/ledgerwatch/erigon-lib v0.0.0-20230209052732-dce672859cf3 h1:Oyseyl3DKlnt1JM0NEjcdENdho5/zGK7H5y5CljdyPM=
|
||||||
github.com/ledgerwatch/erigon-lib v0.0.0-20230209041907-52c880a50ddc/go.mod h1:0C8ZJf2FL/BUqCJq5NrbZr0mq88yi8xXl3OTwLLBC9o=
|
github.com/ledgerwatch/erigon-lib v0.0.0-20230209052732-dce672859cf3/go.mod h1:0C8ZJf2FL/BUqCJq5NrbZr0mq88yi8xXl3OTwLLBC9o=
|
||||||
github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230120022649-cd9409a200da h1:lQQBOHzAUThkymfXJj/m07vAjyMx9XoMMy3OomaeOrA=
|
github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230120022649-cd9409a200da h1:lQQBOHzAUThkymfXJj/m07vAjyMx9XoMMy3OomaeOrA=
|
||||||
github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230120022649-cd9409a200da/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
|
github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230120022649-cd9409a200da/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
|
||||||
github.com/ledgerwatch/log/v3 v3.7.0 h1:aFPEZdwZx4jzA3+/Pf8wNDN5tCI0cIolq/kfvgcM+og=
|
github.com/ledgerwatch/log/v3 v3.7.0 h1:aFPEZdwZx4jzA3+/Pf8wNDN5tCI0cIolq/kfvgcM+og=
|
||||||
|
@ -1716,11 +1716,7 @@ func TransactionsIdx(ctx context.Context, chainID uint256.Int, blockFrom, blockT
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
idxLogLvl := log.LvlDebug
|
txnHashIdx.LogLvl(log.LvlDebug)
|
||||||
if d.Count() > 1_000_000 {
|
|
||||||
idxLogLvl = log.LvlInfo
|
|
||||||
}
|
|
||||||
txnHashIdx.LogLvl(idxLogLvl)
|
|
||||||
txnHash2BlockNumIdx.LogLvl(log.LvlDebug)
|
txnHash2BlockNumIdx.LogLvl(log.LvlDebug)
|
||||||
|
|
||||||
parseCtx := types2.NewTxParseContext(chainID)
|
parseCtx := types2.NewTxParseContext(chainID)
|
||||||
@ -1901,7 +1897,7 @@ func Idx(ctx context.Context, d *compress.Decompressor, firstDataID uint64, tmpD
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
rs.LogLvl(lvl)
|
rs.LogLvl(log.LvlDebug)
|
||||||
|
|
||||||
defer d.EnableMadvNormal().DisableReadAhead()
|
defer d.EnableMadvNormal().DisableReadAhead()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user