MCPcopy Create free account
hub / github.com/ethereum/node-crawler / init

Function init

cmd/crawler/setup.go:85–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83var glogger *log.GlogHandler
84
85func init() {
86 terminalOutput := io.Writer(os.Stderr)
87 glogger := log.NewGlogHandler(log.NewTerminalHandler(terminalOutput, false))
88 glogger.Verbosity(log.LvlInfo)
89 log.SetDefault(log.NewLogger(glogger))
90}
91
92// Setup initializes profiling and logging based on the CLI flags.
93// It should be called as early as possible in the program.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected