Skip to content

Commit

Permalink
fix: remove logger setup doubling (erigontech#1550)
Browse files Browse the repository at this point in the history
* fix: remove logger setup doubling

* fix: remove commented stuff
  • Loading branch information
V-Staykov authored Dec 10, 2024
1 parent 14d24c7 commit 521eb5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions cmd/cdk-erigon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/ledgerwatch/erigon/params"
erigonapp "github.com/ledgerwatch/erigon/turbo/app"
erigoncli "github.com/ledgerwatch/erigon/turbo/cli"
"github.com/ledgerwatch/erigon/turbo/logging"
"github.com/ledgerwatch/erigon/turbo/node"
)

Expand Down Expand Up @@ -60,8 +59,6 @@ func runErigon(cliCtx *cli.Context) error {
}
}

logging.SetupLoggerCtx("cdk-erigon", cliCtx, log.LvlInfo, log.LvlInfo, true)

// initializing the node and providing the current git commit there
log.Info("Build info", "git_branch", params.GitBranch, "git_tag", params.GitTag, "git_commit", params.GitCommit)
log.Info("Poseidon hashing", "Accelerated", vectorizedposeidongold.UsingSimd || vectorizedposeidongold.UsingScalars)
Expand Down
2 changes: 1 addition & 1 deletion turbo/debug/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func Setup(ctx *cli.Context, rootLogger bool) (log.Logger, *http.ServeMux, *http

RaiseFdLimit()

logger := logging.SetupLoggerCtx("erigon", ctx, log.LvlInfo, log.LvlInfo, rootLogger)
logger := logging.SetupLoggerCtx("cdk-erigon", ctx, log.LvlInfo, log.LvlInfo, rootLogger)

if traceFile := ctx.String(traceFlag.Name); traceFile != "" {
if err := Handler.StartGoTrace(traceFile); err != nil {
Expand Down

0 comments on commit 521eb5f

Please sign in to comment.