-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(NODE-4817)!: remove legacy logger #3518
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
Conversation
bb0ed91 to
055c4b3
Compare
1bb04e7 to
f99a285
Compare
…ode-mongodb-native into NODE-4817/remove-legacy-logger
durran
left a comment
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.
More removals in comment responses.
durran
left a comment
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.
Just one last set of changes, thanks!
src/sdam/srv_polling.ts
Outdated
| this.logger.error(`Unexpected ${new MongoRuntimeError(unexpectedRuntimeError).stack}`); | ||
| }); | ||
| // eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars | ||
| this._poll().catch(_unexpectedRuntimeError => {}); |
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.
From slack discussion, don't want to remove this as we don't want to have an unhandled promise, so we can just swallow it here.
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.
Can you change this to ()=>null it matches the rest of our catch and release promise handling.
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.
we can drop the underscore argument
|
https://spruce.mongodb.com/version/63caf4e1e3c3310b2e31edee/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC |
…ode-mongodb-native into NODE-4817/remove-legacy-logger
src/sdam/srv_polling.ts
Outdated
| } | ||
| } | ||
|
|
||
| // TODO(NODE-4817): This method has been left to allow for refactoring with the new 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.
TODOs normally refer to tickets that haven't been done yet so we can find the relevant code again. I think this should probably be something in the new spec-ed logger epic
Description
Removing references to the legacy
Loggerclass in preparation for the implementation and installation of the newMongoLoggerIs there new documentation needed for these changes?
No
Double check the following
npm run check:lintscripttype(NODE-xxxx)[!]: descriptionfeat(NODE-1234)!: rewriting everything in coffeescript