Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: set log level for all loggers based on logger passed #1011

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

chaitanyaprem
Copy link
Collaborator

Description

Fixes all loggers to be set to log-level of the logger object passed.
Also fixes logs in status-desktop for libp2p which are not printed with proper file name for log origin.
As of now logs are printed as below

   DEBUG[01-23|16:06:42.943|go.uber.org/zap/sugar.go:127]                                                   [Fx] SUPPLY    []upgrader.StreamMuxer
   DEBUG[01-23|16:06:42.943|go.uber.org/zap/sugar.go:127]                                                   [Fx] SUPPLY    peer.ID
   DEBUG[01-23|16:06:42.943|go.uber.org/zap/sugar.go:127]                                                   [Fx] PROVIDE   host.Host <= github.com/libp2p/go-libp2p/config.(*Config).addTransports.func2()
   DEBUG[01-23|16:06:42.943|go.uber.org/zap/sugar.go:127]                                                   [Fx] PROVIDE   crypto.PrivKey <= github.com/libp2p/go-libp2p/config.(*Config).addTransports.func3()

@status-im-auto
Copy link

status-im-auto commented Jan 24, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 91ff81f #1 2024-01-24 07:55:05 ~1 min nix-flake 📄log
✔️ f2fefbb #2 2024-01-24 08:37:45 ~1 min nix-flake 📄log

@chaitanyaprem chaitanyaprem merged commit 5fdd0da into master Jan 25, 2024
12 checks passed
@chaitanyaprem chaitanyaprem deleted the fix/logger-option-level branch January 25, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants