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

Implement logger support #508

Merged
merged 5 commits into from
Nov 28, 2023

Conversation

mrashed-dev
Copy link
Collaborator

Description

This PR adds in an option to pass in a logger instead of the SDK using console to log. Closes #456.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (8018c78) 91.70% compared to head (7258c0a) 91.55%.

❗ Current head 7258c0a differs from pull request most recent head 163f0ce. Consider uploading reports for the commit 163f0ce to get more accurate results

Files Patch % Lines
src/nylas.ts 33.33% 4 Missing ⚠️
src/nylas-connection.ts 50.00% 2 Missing ⚠️
src/config.ts 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #508      +/-   ##
==========================================
- Coverage   91.70%   91.55%   -0.16%     
==========================================
  Files          62       62              
  Lines        2641     2651      +10     
  Branches      481      485       +4     
==========================================
+ Hits         2422     2427       +5     
- Misses        218      223       +5     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrashed-dev mrashed-dev merged commit 6886643 into main Nov 28, 2023
2 checks passed
@mrashed-dev mrashed-dev deleted the TW-2383-gh-456-node-dont-use-console-error branch November 28, 2023 16:56
@mrashed-dev mrashed-dev mentioned this pull request Nov 28, 2023
mrashed-dev added a commit that referenced this pull request Nov 29, 2023
# Changelog
* Add support for logging (#508, #456)
* Nullify replyToMessageId is an empty string (#484, #509)
* Nullify visibility if visibility is an empty string (#507, #470)
* Fix numbers defaulting to 0 instead of null (#469)
* Fix parsing of Number arrays (#503, #502)
* Fix configured timeout not being used (#506, #489)
* Bump `node-fetch` dependency from 2.6.1 to 2.6.12 (#504, #496)
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.

Don't use console.error
2 participants