WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 3026635

Browse files
committed
fix(logging): forward debug logs
Without this, we lose debug logging information from the oidc-plugin internals, such as HTTP request tracking.
1 parent 6e615e3 commit 3026635

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/logging/src/logging-and-telemetry.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,9 @@ export class LoggingAndTelemetry implements MongoshLoggingAndTelemetry {
913913
hookLogger(
914914
this.bus,
915915
{
916+
debug: (...args: Parameters<typeof this.log.debug>) => {
917+
return this.log.debug(...args);
918+
},
916919
info: (...args: Parameters<typeof this.log.info>) => {
917920
return this.log.info(...args);
918921
},

0 commit comments

Comments
 (0)