Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
aditi-khare-mongoDB committed Jul 2, 2024
commit 29408b490c105f9b993175f90283b8561378c42c
2 changes: 1 addition & 1 deletion src/mongo_logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,11 +650,11 @@ export function defaultLogTransform(
if (logObject.error) {
log.error = logObject.error;
}
log.durationMS = logObject.durationMS;
break;
default:
log.reason = `Unknown close reason: ${logObject.reason}`;
}
log.durationMS = logObject.durationMS;
return log;
case CONNECTION_CHECKED_OUT:
log = attachConnectionFields(log, logObject);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,6 @@
"int",
"long"
]
},
"durationMS": {
"$$type": [
"double",
"int",
"long"
]
}
}
},
Expand Down Expand Up @@ -198,6 +191,13 @@
"long"
]
},
"durationMS": {
"$$type": [
"double",
"int",
"long"
]
},
"reason": "An error occurred while trying to establish a new connection",
"error": {
"$$exists": true
Expand Down