-
Notifications
You must be signed in to change notification settings - Fork 664
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 #916 Logger given to WebClient is destructively modified #917
Fix #916 Logger given to WebClient is destructively modified #917
Conversation
Codecov Report
@@ Coverage Diff @@
## master #917 +/- ##
==========================================
- Coverage 95.17% 94.92% -0.25%
==========================================
Files 12 12
Lines 725 729 +4
Branches 164 166 +2
==========================================
+ Hits 690 692 +2
Misses 13 13
- Partials 22 24 +2
Continue to review full report at Codecov.
|
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.
Nice fix! LGTM
if (typeof logger !== 'undefined') { | ||
this.logger = logger; | ||
if (typeof logLevel !== 'undefined') { | ||
this.logger.debug('The logLevel given to WebClient was ignored as you also gave logger'); |
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.
So the loglevel
parameter is useless in this instance because by passing in logger, it is assumed it already has a loglevel
set
Thanks for your review. I don't think this is an urgent one but it'll be great if we could have a new release of both |
Summary
This pull request fixes #916. Refer to the issue for details.
Requirements (place an
x
in each[ ]
)