You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It seems that the --log-level setting is not observed by reporting activity on the C chain while on P and X chain this seems to work as expected. This produces huge amounts of unwanted log output wasting resources and slowing down the service unnecessarily.
To Reproduce
Run avalanchego ... --log-level=Info ... or any other setting for the log level. In the log files you will see INFO messages and above for P and X chain as expected:
==> P/0.log <==
INFO [06-06|17:48:56] <P Chain> avalanchego/vms/platformvm/vm.go#200: initializing last accepted block as 2gnCjpDPMxbZTHXtFtsDmMC7HGNyMTKwntJpiJJ4YtWdfZRCnu
INFO [06-06|17:48:56] <P Chain> avalanchego/snow/engine/snowman/transitive.go#64: initializing consensus engine
INFO [06-06|17:48:56] <P Chain> avalanchego/snow/engine/common/bootstrapper.go#71: Starting bootstrap...
INFO [06-06|17:49:00] <P Chain> avalanchego/snow/engine/common/bootstrapper.go#300: Bootstrapping started syncing with 1 vertices in the accepted frontier
...
==> X/0.log <==
INFO [06-06|17:49:01] <X Chain> avalanchego/snow/engine/avalanche/transitive.go#72: initializing consensus engine
INFO [06-06|17:49:01] <X Chain> avalanchego/snow/engine/common/bootstrapper.go#71: Starting bootstrap...
INFO [06-06|17:49:05] <X Chain> avalanchego/snow/engine/common/bootstrapper.go#300: Bootstrapping started syncing with 1 vertices in the accepted frontier
INFO [06-06|17:49:07] <X Chain> avalanchego/snow/engine/avalanche/bootstrap/bootstrapper.go#428: bootstrapping fetched 2 vertices. Executing transaction state transitions...
However, the C chain log shows all log levels including DEBUG messages independent of the setting of --log-level:
Describe the bug
It seems that the --log-level setting is not observed by reporting activity on the C chain while on P and X chain this seems to work as expected. This produces huge amounts of unwanted log output wasting resources and slowing down the service unnecessarily.
To Reproduce
Run
avalanchego ... --log-level=Info ...
or any other setting for the log level. In the log files you will see INFO messages and above for P and X chain as expected:However, the C chain log shows all log levels including DEBUG messages independent of the setting of
--log-level
:Expected behavior
The C chain log should show messages observing
log-level
as the other two chain logs do.Operating System
Linux version 4.19.0-16-amd64 ([email protected]) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.181-1 (2021-03-19)
Additional context
Observed in 1.4.7 (but was most likely there before)
By submitting this issue I agree to the Terms and Conditions of the Developer Accelerator Program.
The text was updated successfully, but these errors were encountered: