-
Notifications
You must be signed in to change notification settings - Fork 247
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(logging)_: default waku node logs to INFO level #6164
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (49)
|
wakuv2/persistence/dbstore.go
Outdated
@@ -200,7 +200,7 @@ func (d *DBStore) Query(query *storepb.HistoryQuery) (*storepb.Index, []gowakuPe | |||
start := time.Now() | |||
defer func() { | |||
elapsed := time.Since(start) | |||
d.log.Info(fmt.Sprintf("Loading records from the DB took %s", elapsed)) | |||
d.log.Debug(fmt.Sprintf("Loading records from the DB took %s", elapsed)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d.log.Debug(fmt.Sprintf("Loading records from the DB took %s", elapsed)) | |
d.log.Debug("loaded records from DB", zap.Duration("duration", elapsed)) |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6164 +/- ##
============================================
+ Coverage 13.90% 60.96% +47.05%
============================================
Files 817 832 +15
Lines 108265 109836 +1571
============================================
+ Hits 15054 66959 +51905
+ Misses 91290 35042 -56248
- Partials 1921 7835 +5914
Flags with carried forward coverage won't be shown. Click here to find out more.
|
0148d3d
to
566e9e1
Compare
566e9e1
to
0338f04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
cc: @ilmotta as it's gonna be necessary to add a checkbox or something in mobile to enable waku debug level logs with |
@@ -289,7 +289,7 @@ func New(nodeKey *ecdsa.PrivateKey, fleet string, cfg *Config, logger *zap.Logge | |||
node.WithConnectionNotification(waku.connectionNotifChan), | |||
node.WithTopicHealthStatusChannel(waku.topicHealthStatusChan), | |||
node.WithKeepAlive(randomPeersKeepAliveInterval, allPeersKeepAliveInterval), | |||
node.WithLogger(logger), | |||
node.WithLogger(logger.Named("wakunode")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to refer to namespaces we need to hardcode using constants.
Issue created for Mobile status-im/status-mobile#21758. Thanks for tagging me @richard-ramos |
0338f04
to
c7e3c34
Compare
This ensures waku node logs remain at INFO level, even if the global logging level is set lower (e.g. DEBUG). To enable waku logs at a specific level, one can execute: `wakuext_setLogNamespaces([{"logNamespaces": "wakunode:debug"}])`. iterates: status-im/status-desktop#16511
c7e3c34
to
61c9e83
Compare
This ensures waku node logs remain at INFO level, even if the global
logging level is set lower (e.g. DEBUG). To enable waku logs at a
specific level, one can execute:
wakuext_setLogNamespaces([{"logNamespaces": "wakunode:debug"}])
.iterates: status-im/status-desktop#16511