MCPcopy
hub / github.com/mongodb/node-mongodb-native / shouldEmitAndLogCommand

Method shouldEmitAndLogCommand

src/cmap/connection.ts:295–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293 }
294
295 private get shouldEmitAndLogCommand(): boolean {
296 return (
297 (this.monitorCommands ||
298 (this.established &&
299 !this.authContext?.reauthenticating &&
300 this.mongoLogger?.willLog(MongoLoggableComponent.COMMAND, SeverityLevel.DEBUG))) ??
301 false
302 );
303 }
304
305 public markAvailable(): void {
306 this.lastUseTime = processTimeMS();

Callers

nothing calls this directly

Calls 1

willLogMethod · 0.80

Tested by

no test coverage detected