File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed
test/integration/node-specific Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -769,12 +769,12 @@ export class MongoLogger {
769
769
770
770
createWillLog ( ) {
771
771
for ( const component of Object . values ( MongoLoggableComponent ) ) {
772
- this . willLog [ component ] = Object . fromEntries (
773
- Object . entries ( SeverityLevel ) . map ( ( [ _key , value ] ) => [
774
- value as SeverityLevel ,
775
- compareSeverity ( value , this . componentSeverities [ component ] ) <= 0
776
- ] )
777
- ) as Record < SeverityLevel , boolean > ;
772
+ for ( const severityLevel of Object . values ( SeverityLevel ) ) {
773
+ this . willLog [ component ] = {
774
+ ... this . willLog [ component ] ,
775
+ [ severityLevel ] : compareSeverity ( severityLevel , this . componentSeverities [ component ] ) <= 0
776
+ } ;
777
+ }
778
778
}
779
779
}
780
780
Original file line number Diff line number Diff line change 1
1
import { expect } from 'chai' ;
2
2
3
- import { MongoClient , type MongoLoggableComponent , SeverityLevel } from '../../mongodb' ;
3
+ import { MongoClient , SeverityLevel } from '../../mongodb' ;
4
4
5
5
describe ( 'Feature Flags' , ( ) => {
6
6
describe ( '@@mdb.skipPingOnConnect' , ( ) => {
@@ -49,13 +49,6 @@ describe('Feature Flags', () => {
49
49
describe ( '@@mdb.enableMongoLogger' , ( ) => {
50
50
let cachedEnv ;
51
51
const loggerFeatureFlag = Symbol . for ( '@@mdb.enableMongoLogger' ) ;
52
- const components : Array < MongoLoggableComponent | 'default' > = [
53
- 'default' ,
54
- 'topology' ,
55
- 'serverSelection' ,
56
- 'connection' ,
57
- 'command'
58
- ] ;
59
52
60
53
before ( ( ) => {
61
54
cachedEnv = process . env ;
You can’t perform that action at this time.
0 commit comments