Skip to content

Align Logging #7249

@AgeManning

Description

@AgeManning

I've noticed once switched to tracing our logs aren't aligned. Its a small thing, but might be nice to improve the formatter. See for example:

Apr 03 18:31:22.540 INFO Blob DB initialized                           path: "/home/age/.lighthouse/mainnet/beacon/blobs_db", oldest_blob_slot: Some(Slot(8626176)), oldest_data_column_slot: None
Apr 03 18:31:22.540 DEBUG Loaded execution endpoint                     endpoint: http://localhost:8551/, jwt_path: "/tmp/mockel.jwt"
Apr 03 18:31:24.226 INFO Starting checkpoint sync                      remote_url: https://beaconstate-mainnet.chainsafe.io/

It occurs because DEBUG is longer than INFO. If we pad the spaces so that for all log levels the message starts at the same point, I think this would be remedied.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions