Skip to content

Commit c3b8b52

Browse files
committed
chore: add name
1 parent 2be5714 commit c3b8b52

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: test/tools/runner/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,9 @@ export class TestConfiguration {
448448
'CSOT spec tests legacy timeouts behave correctly for retryable operations operation succeeds after one socket timeout - aggregate on collection'
449449
];
450450

451-
setupLogging(options) {
451+
setupLogging(options: MongoClientOptions, s: string = '') {
452452
this.logs = [];
453-
const write = log => this.logs.push(log);
453+
const write = log => this.logs.push({ t: log.t, s, ...log });
454454
options.mongodbLogPath = { write };
455455
options.mongodbLogComponentSeverities = { default: 'trace' };
456456
options.mongodbLogMaxDocumentLength = 300;

Diff for: test/tools/unified-spec-runner/entities.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class UnifiedMongoClient extends MongoClient {
203203
description: ClientEntity,
204204
config: {
205205
loggingEnabled?: boolean;
206-
setupLogging?: (options: Record<string, any>) => Record<string, any>;
206+
setupLogging?: (options: Record<string, any>, id: string) => Record<string, any>;
207207
}
208208
) {
209209
const options: MongoClientOptions = {
@@ -230,7 +230,7 @@ export class UnifiedMongoClient extends MongoClient {
230230
}
231231
} as MongoDBLogWritable;
232232
} else if (config.loggingEnabled) {
233-
config.setupLogging?.(options);
233+
config.setupLogging?.(options, description.id);
234234
}
235235

236236
super(uri, options);

0 commit comments

Comments
 (0)