Skip to content

Commit fa03f78

Browse files
tac0turtlegoogle-labs-jules[bot]tac0turtle
authored
feat: migrate logging to ipfs/go-log/v2 (#2411)
This commit migrates Rollkit's logging from cosmossdk.io/log to github.com/ipfs/go-log/v2. Key changes include: - Updated the central SetupLogger function to use ipfs/go-log/v2. - Replaced cosmossdk.io/log imports and usage with ipfs/go-log/v2 across the codebase. - Updated logger types (log.Logger to logging.EventLogger). - Adjusted test logger initialization (NewTestLogger, NewNopLogger) to use ipfs/go-log/v2 equivalents with appropriate log levels. - Replaced logger.With("module", "name") with logging.Logger("name") for subsystem loggers. - Removed direct usage of rs/zerolog for log level parsing. - Ensured all automated tests pass after the migration. <!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. NOTE: PR titles should follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/ --> ## Overview <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. Ex: Closes #<issue number> --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Replaced the previous logging system with a new logging library across all components, including configuration, instantiation, and logger usage in both application and test code. * Updated all relevant interfaces, struct fields, and function signatures to use the new logger type. * Removed unused dependencies and simplified module dependency lists. * **Chores** * Reduced and updated project dependencies to streamline the codebase. * **Tests** * Updated test setups to use the new logging library and suppressed log output during tests for cleaner test results. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: tac0turtle <you@example.com>
1 parent 1ca8457 commit fa03f78

66 files changed

Lines changed: 474 additions & 605 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/evm/based/go.mod

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ require (
2626
require (
2727
connectrpc.com/connect v1.18.1 // indirect
2828
connectrpc.com/grpcreflect v1.3.0 // indirect
29-
cosmossdk.io/log v1.6.0 // indirect
3029
dario.cat/mergo v1.0.1 // indirect
3130
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 // indirect
3231
github.com/AlecAivazis/survey/v2 v2.3.7 // indirect
@@ -55,14 +54,11 @@ require (
5554
github.com/beorn7/perks v1.0.1 // indirect
5655
github.com/bits-and-blooms/bitset v1.17.0 // indirect
5756
github.com/buger/goterm v1.0.4 // indirect
58-
github.com/bytedance/sonic v1.13.2 // indirect
59-
github.com/bytedance/sonic/loader v0.2.4 // indirect
6057
github.com/celestiaorg/go-header v0.6.6 // indirect
6158
github.com/celestiaorg/go-libp2p-messenger v0.2.2 // indirect
6259
github.com/celestiaorg/go-square/v2 v2.2.0 // indirect
6360
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
6461
github.com/cespare/xxhash/v2 v2.3.0 // indirect
65-
github.com/cloudwego/base64x v0.1.5 // indirect
6662
github.com/compose-spec/compose-go/v2 v2.6.0 // indirect
6763
github.com/consensys/bavard v0.1.22 // indirect
6864
github.com/consensys/gnark-crypto v0.14.0 // indirect
@@ -278,7 +274,6 @@ require (
278274
github.com/raulk/go-watchdog v1.3.0 // indirect
279275
github.com/rivo/uniseg v0.2.0 // indirect
280276
github.com/rs/cors v1.11.1 // indirect
281-
github.com/rs/zerolog v1.34.0 // indirect
282277
github.com/sagikazarmark/locafero v0.4.0 // indirect
283278
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
284279
github.com/secure-systems-lab/go-securesystemslib v0.4.0 // indirect
@@ -309,7 +304,6 @@ require (
309304
github.com/tonistiigi/go-csvvalue v0.0.0-20240710180619-ddb21b71c0b4 // indirect
310305
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea // indirect
311306
github.com/tonistiigi/vt100 v0.0.0-20240514184818-90bafcd6abab // indirect
312-
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
313307
github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect
314308
github.com/wlynxg/anet v0.0.5 // indirect
315309
github.com/x448/float16 v0.8.4 // indirect
@@ -340,7 +334,6 @@ require (
340334
go.uber.org/mock v0.5.0 // indirect
341335
go.uber.org/multierr v1.11.0 // indirect
342336
go.uber.org/zap v1.27.0 // indirect
343-
golang.org/x/arch v0.15.0 // indirect
344337
golang.org/x/crypto v0.39.0 // indirect
345338
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect
346339
golang.org/x/mod v0.25.0 // indirect

apps/evm/based/go.sum

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ connectrpc.com/connect v1.18.1 h1:PAg7CjSAGvscaf6YZKUefjoih5Z/qYkyaTrBW8xvYPw=
66
connectrpc.com/connect v1.18.1/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8=
77
connectrpc.com/grpcreflect v1.3.0 h1:Y4V+ACf8/vOb1XOc251Qun7jMB75gCUNw6llvB9csXc=
88
connectrpc.com/grpcreflect v1.3.0/go.mod h1:nfloOtCS8VUQOQ1+GTdFzVg2CJo4ZGaat8JIovCtDYs=
9-
cosmossdk.io/log v1.6.0 h1:SJIOmJ059wi1piyRgNRXKXhlDXGqnB5eQwhcZKv2tOk=
10-
cosmossdk.io/log v1.6.0/go.mod h1:5cXXBvfBkR2/BcXmosdCSLXllvgSjphrrDVdfVRmBGM=
119
dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s=
1210
dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
1311
dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU=
@@ -107,11 +105,6 @@ github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b h1:otBG+dV+YK+Soembj
107105
github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b/go.mod h1:obH5gd0BsqsP2LwDJ9aOkm/6J86V6lyAXCoQWGw3K50=
108106
github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0 h1:nvj0OLI3YqYXer/kZD8Ri1aaunCxIEsOst1BVJswV0o=
109107
github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0/go.mod h1:D/8v3kj0zr8ZAKg1AQ6crr+5VwKN5eIywRkfhyM/+dE=
110-
github.com/bytedance/sonic v1.13.2 h1:8/H1FempDZqC4VqjptGo14QQlJx8VdZJegxs6wwfqpQ=
111-
github.com/bytedance/sonic v1.13.2/go.mod h1:o68xyaF9u2gvVBuGHPlUVCy+ZfmNNO5ETf1+KgkJhz4=
112-
github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
113-
github.com/bytedance/sonic/loader v0.2.4 h1:ZWCw4stuXUsn1/+zQDqeE7JKP+QO47tz7QCNan80NzY=
114-
github.com/bytedance/sonic/loader v0.2.4/go.mod h1:N8A3vUdtUebEY2/VQC0MyhYeKUFosQU6FxH2JmUe6VI=
115108
github.com/celestiaorg/go-header v0.6.6 h1:17GvSXU/w8L1YWHZP4pYm9/4YHA8iy5Ku2wTEKYYkCU=
116109
github.com/celestiaorg/go-header v0.6.6/go.mod h1:RdnlTmsyuNerztNiJiQE5G/EGEH+cErhQ83xNjuGcaQ=
117110
github.com/celestiaorg/go-libp2p-messenger v0.2.2 h1:osoUfqjss7vWTIZrrDSy953RjQz+ps/vBFE7bychLEc=
@@ -129,9 +122,6 @@ github.com/cilium/ebpf v0.2.0/go.mod h1:To2CFviqOWL/M0gIMsvSMlqe7em/l1ALkX1PyjrX
129122
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
130123
github.com/cloudflare/cfssl v0.0.0-20180223231731-4e2dcbde5004 h1:lkAMpLVBDaj17e85keuznYcH5rqI438v41pKcBl4ZxQ=
131124
github.com/cloudflare/cfssl v0.0.0-20180223231731-4e2dcbde5004/go.mod h1:yMWuSON2oQp+43nFtAV/uvKQIFpSPerB57DCt9t8sSA=
132-
github.com/cloudwego/base64x v0.1.5 h1:XPciSp1xaq2VCSt6lF0phncD4koWyULpl5bUxbfCyP4=
133-
github.com/cloudwego/base64x v0.1.5/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w=
134-
github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY=
135125
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
136126
github.com/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDrbC/I=
137127
github.com/cockroachdb/errors v1.11.3/go.mod h1:m4UIW4CDjx+R5cybPsNrRbreomiFqt8o1h1wUVazSd8=
@@ -514,10 +504,8 @@ github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI
514504
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
515505
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
516506
github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ=
517-
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
518507
github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE=
519508
github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
520-
github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M=
521509
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
522510
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
523511
github.com/koron/go-ssdp v0.0.5 h1:E1iSMxIs4WqxTbIBLtmNBeOOC+1sCIXQeqTWVnpmwhk=
@@ -579,12 +567,9 @@ github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJ
579567
github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd h1:br0buuQ854V8u83wA0rVZ8ttrq5CpaPZdvrK0LP2lOk=
580568
github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd/go.mod h1:QuCEs1Nt24+FYQEqAAncTDPJIuGs+LxK1MCiFL25pMU=
581569
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
582-
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
583570
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
584571
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
585572
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
586-
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
587-
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
588573
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
589574
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
590575
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
@@ -827,9 +812,6 @@ github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR
827812
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
828813
github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA=
829814
github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
830-
github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0=
831-
github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY=
832-
github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ=
833815
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
834816
github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww=
835817
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
@@ -957,8 +939,6 @@ github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea h1:SXhTLE6pb6eld/
957939
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea/go.mod h1:WPnis/6cRcDZSUvVmezrxJPkiO87ThFYsoUiMwWNDJk=
958940
github.com/tonistiigi/vt100 v0.0.0-20240514184818-90bafcd6abab h1:H6aJ0yKQ0gF49Qb2z5hI1UHxSQt4JMyxebFR15KnApw=
959941
github.com/tonistiigi/vt100 v0.0.0-20240514184818-90bafcd6abab/go.mod h1:ulncasL3N9uLrVann0m+CDlJKWsIAP34MPcOJF6VRvc=
960-
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
961-
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
962942
github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
963943
github.com/urfave/cli v1.22.10/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
964944
github.com/urfave/cli v1.22.16 h1:MH0k6uJxdwdeWQTwhSO42Pwr4YLrNLwBtg1MRgTqPdQ=
@@ -1047,8 +1027,6 @@ go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ=
10471027
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
10481028
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
10491029
go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE=
1050-
golang.org/x/arch v0.15.0 h1:QtOrQd0bTUnhNVNndMpLHNWrDmYzZ2KDqSrEymqInZw=
1051-
golang.org/x/arch v0.15.0/go.mod h1:JmwW7aLIoRUKgaTzhkiEFxvcEiQGyOg9BMonBJUS7EE=
10521030
golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw=
10531031
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
10541032
golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
@@ -1158,14 +1136,12 @@ golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBc
11581136
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11591137
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11601138
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
1161-
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11621139
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11631140
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11641141
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11651142
golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11661143
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11671144
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
1168-
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11691145
golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
11701146
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
11711147
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
@@ -1316,7 +1292,6 @@ k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1
13161292
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
13171293
lukechampine.com/blake3 v1.4.0 h1:xDbKOZCVbnZsfzM6mHSYcGRHZ3YrLDzqz8XnV4uaD5w=
13181294
lukechampine.com/blake3 v1.4.0/go.mod h1:MQJNQCTnR+kwOP/JEZSxj3MaQjp80FOFSNMMHXcSeX0=
1319-
nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYmp6pbG50=
13201295
rsc.io/tmplfunc v0.0.3 h1:53XFQh69AfOa8Tw0Jm7t+GV7KZhOi6jzsCzTtKbMvzU=
13211296
rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA=
13221297
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=

apps/evm/single/cmd/run.go

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import (
77

88
"github.com/rollkit/rollkit/da/jsonrpc"
99
"github.com/rollkit/rollkit/sequencers/single"
10-
"github.com/rs/zerolog"
1110

12-
"cosmossdk.io/log"
1311
"github.com/ethereum/go-ethereum/common"
1412
"github.com/spf13/cobra"
1513

@@ -28,16 +26,6 @@ var RunCmd = &cobra.Command{
2826
Aliases: []string{"node", "run"},
2927
Short: "Run the rollkit node with EVM execution client",
3028
RunE: func(cmd *cobra.Command, args []string) error {
31-
opts := []log.Option{}
32-
logLevel, _ := cmd.Flags().GetString(config.FlagLogLevel)
33-
if logLevel != "" {
34-
zl, err := zerolog.ParseLevel(logLevel)
35-
if err != nil {
36-
return err
37-
}
38-
opts = append(opts, log.LevelOption(zl))
39-
}
40-
4129
executor, err := createExecutionClient(cmd)
4230
if err != nil {
4331
return err
@@ -60,10 +48,10 @@ var RunCmd = &cobra.Command{
6048
return err
6149
}
6250

63-
singleMetrics, err := single.DefaultMetricsProvider(nodeConfig.Instrumentation.IsPrometheusEnabled())(nodeConfig.ChainID)
64-
if err != nil {
65-
return err
66-
}
51+
singleMetrics, err := single.DefaultMetricsProvider(nodeConfig.Instrumentation.IsPrometheusEnabled())(nodeConfig.ChainID)
52+
if err != nil {
53+
return err
54+
}
6755

6856
sequencer, err := single.NewSequencer(
6957
context.Background(),

apps/evm/single/go.mod

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ replace (
1414
)
1515

1616
require (
17-
cosmossdk.io/log v1.6.0
1817
github.com/ethereum/go-ethereum v1.15.0
1918
github.com/rollkit/rollkit v0.14.2-0.20250317130407-e9e0a1b0485e
2019
github.com/rollkit/rollkit/core v0.0.0-20250317130407-e9e0a1b0485e
2120
github.com/rollkit/rollkit/da v0.0.0-20250317130407-e9e0a1b0485e
2221
github.com/rollkit/rollkit/execution/evm v0.0.0-00010101000000-000000000000
2322
github.com/rollkit/rollkit/sequencers/single v0.0.0-00010101000000-000000000000
24-
github.com/rs/zerolog v1.34.0
2523
github.com/spf13/cobra v1.9.1
2624
)
2725

@@ -56,14 +54,11 @@ require (
5654
github.com/beorn7/perks v1.0.1 // indirect
5755
github.com/bits-and-blooms/bitset v1.17.0 // indirect
5856
github.com/buger/goterm v1.0.4 // indirect
59-
github.com/bytedance/sonic v1.13.2 // indirect
60-
github.com/bytedance/sonic/loader v0.2.4 // indirect
6157
github.com/celestiaorg/go-header v0.6.6 // indirect
6258
github.com/celestiaorg/go-libp2p-messenger v0.2.2 // indirect
6359
github.com/celestiaorg/go-square/v2 v2.2.0 // indirect
6460
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
6561
github.com/cespare/xxhash/v2 v2.3.0 // indirect
66-
github.com/cloudwego/base64x v0.1.5 // indirect
6762
github.com/compose-spec/compose-go/v2 v2.6.0 // indirect
6863
github.com/consensys/bavard v0.1.22 // indirect
6964
github.com/consensys/gnark-crypto v0.14.0 // indirect
@@ -309,7 +304,6 @@ require (
309304
github.com/tonistiigi/go-csvvalue v0.0.0-20240710180619-ddb21b71c0b4 // indirect
310305
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea // indirect
311306
github.com/tonistiigi/vt100 v0.0.0-20240514184818-90bafcd6abab // indirect
312-
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
313307
github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect
314308
github.com/wlynxg/anet v0.0.5 // indirect
315309
github.com/x448/float16 v0.8.4 // indirect
@@ -340,7 +334,6 @@ require (
340334
go.uber.org/mock v0.5.0 // indirect
341335
go.uber.org/multierr v1.11.0 // indirect
342336
go.uber.org/zap v1.27.0 // indirect
343-
golang.org/x/arch v0.15.0 // indirect
344337
golang.org/x/crypto v0.39.0 // indirect
345338
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect
346339
golang.org/x/mod v0.25.0 // indirect

0 commit comments

Comments
 (0)