ethersphere/bee

Enabling loggerV2 logs?

ldeffenb opened this issue · 3 comments

Context

2.0.0

Summary

Verbosity 5 logs don't show those coded as loggerV2?

Expected behavior

I would expect all coded logs to show up when running with --verbosity 5

Actual behavior

Logs that I see in the source do not appear in the log output. Consider:

loggerV2 := p.logger.V(2).Register()

I KNOW that this node has pulled historical chunks, so why is this log not showing up? In fact, none of the "syncWorker" logs are in my log output.
loggerV2.Debug("syncWorker pulled", "bin", bin, "start", start, "topmost", top, "isHistorical", isHistorical, "duration", time.Since(syncStart), "peer_address", address)

Steps to reproduce

Run a new node with --verbosity 5 and capture the log output. it will definitely need to pullsync the reserve from the swarm, but this log never shows up?

Possible solution

That's what I'm asking for! Is there a way for these p.logger.V(2).Register() logs to get into the output?