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

fix: respect client.logging option for all logs #4572

Merged
merged 4 commits into from
Sep 19, 2022
Merged

Conversation

snitin315
Copy link
Member

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Yes, updated snapshots.

Motivation / Use-Case

Fix #4566

Breaking Changes

No

Additional Info

@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Base: 92.06% // Head: 92.19% // Increases project coverage by +0.12% 🎉

Coverage data is based on head (5f1dc66) compared to base (87072c7).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4572      +/-   ##
==========================================
+ Coverage   92.06%   92.19%   +0.12%     
==========================================
  Files          16       16              
  Lines        1639     1639              
  Branches      617      617              
==========================================
+ Hits         1509     1511       +2     
+ Misses        119      117       -2     
  Partials       11       11              
Impacted Files Coverage Δ
client-src/index.js 81.74% <100.00%> (ø)
lib/servers/WebsocketServer.js 94.87% <0.00%> (+5.12%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -18,7 +18,8 @@ setLogLevel(defaultLevel);

const log = logger.getLogger(name);

const logEnabledFeatures = (features) => {
const logEnabledFeatures = (features, logLevel = "info") => {
setLogLevel(logLevel);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's avoid it and just move logEnabledFeatures here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@alexander-akait alexander-akait merged commit 375835c into master Sep 19, 2022
@alexander-akait alexander-akait deleted the fix/logging branch September 19, 2022 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No way to disable log about enabled features
2 participants