-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(service-provider-server): log more detailed information about DN…
…S lookups (#1191) In particular, include whether os-dns-native made lookups using the native OS DNS APIs or not.
- Loading branch information
Showing
8 changed files
with
39 additions
and
29 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,8 +102,17 @@ describe('setupLoggerAndTelemetry', () => { | |
bus.emit('devtools-connect:connect-heartbeat-succeeded', { connectionId: 'localhost' }); | ||
bus.emit('devtools-connect:connect-fail-early'); | ||
bus.emit('devtools-connect:connect-attempt-finished'); | ||
bus.emit('devtools-connect:resolve-srv-error', { from: 'mongodb+srv://foo:[email protected]/', error: new Error('failed'), duringLoad: false }); | ||
bus.emit('devtools-connect:resolve-srv-succeeded', { from: 'mongodb+srv://foo:[email protected]/', to: 'mongodb://foo:[email protected]/' }); | ||
bus.emit('devtools-connect:resolve-srv-error', { | ||
from: 'mongodb+srv://foo:[email protected]/', | ||
error: new Error('failed'), | ||
duringLoad: false, | ||
resolutionDetails: [] | ||
}); | ||
bus.emit('devtools-connect:resolve-srv-succeeded', { | ||
from: 'mongodb+srv://foo:[email protected]/', | ||
to: 'mongodb://foo:[email protected]/', | ||
resolutionDetails: [] | ||
}); | ||
bus.emit('devtools-connect:missing-optional-dependency', { name: 'kerberos', error: new Error('no kerberos') }); | ||
bus.emit('mongosh-sp:reset-connection-options'); | ||
|
||
|
@@ -201,9 +210,9 @@ describe('setupLoggerAndTelemetry', () => { | |
expect(logOutput[i++].msg).to.equal('Aborting connection attempt as irrecoverable'); | ||
expect(logOutput[i++].msg).to.equal('Connection attempt finished'); | ||
expect(logOutput[i].msg).to.equal('Resolving SRV record failed'); | ||
expect(logOutput[i++].attr).to.deep.equal({ from: 'mongodb+srv://<credentials>@hello.world/', error: 'failed', duringLoad: false }); | ||
expect(logOutput[i++].attr).to.deep.equal({ from: 'mongodb+srv://<credentials>@hello.world/', error: 'failed', duringLoad: false, resolutionDetails: [] }); | ||
expect(logOutput[i].msg).to.equal('Resolving SRV record succeeded'); | ||
expect(logOutput[i++].attr).to.deep.equal({ from: 'mongodb+srv://<credentials>@hello.world/', to: 'mongodb://<credentials>@db.hello.world/' }); | ||
expect(logOutput[i++].attr).to.deep.equal({ from: 'mongodb+srv://<credentials>@hello.world/', to: 'mongodb://<credentials>@db.hello.world/', resolutionDetails: [] }); | ||
expect(logOutput[i].msg).to.equal('Missing optional dependency'); | ||
expect(logOutput[i++].attr).to.deep.equal({ name: 'kerberos', error: 'no kerberos' }); | ||
expect(logOutput[i++].msg).to.equal('Reconnect because of changed connection options'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters