summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/logging.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-09-04 11:38:05 -0700
committerMatthew Miller <matthew@millerti.me>2023-09-04 11:38:05 -0700
commit756d84e264f2e5f3d1ef8df84f3552607b2334ba (patch)
tree24f0a6241bc10a88071959e817ec2ae76eac9477 /packages/server/src/helpers/logging.ts
parent7c7b9cb681e68ede46c19f95a063da3420a53aa2 (diff)
Make debug logging a noop for now
Diffstat (limited to 'packages/server/src/helpers/logging.ts')
-rw-r--r--packages/server/src/helpers/logging.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/server/src/helpers/logging.ts b/packages/server/src/helpers/logging.ts
index c415ad7..a46821e 100644
--- a/packages/server/src/helpers/logging.ts
+++ b/packages/server/src/helpers/logging.ts
@@ -1,6 +1,6 @@
-import { debug, Debugger } from '../deps.ts';
+// import { debug, Debugger } from '../deps.ts';
-const defaultLogger = debug('SimpleWebAuthn');
+// const defaultLogger = debug('SimpleWebAuthn');
/**
* Generate an instance of a `debug` logger that extends off of the "simplewebauthn" namespace for
@@ -16,6 +16,7 @@ const defaultLogger = debug('SimpleWebAuthn');
* log('hello'); // simplewebauthn:mds hello +0ms
* ```
*/
-export function getLogger(name: string): Debugger {
- return defaultLogger.extend(name);
+export function getLogger(_name: string): (message: string, ..._rest: unknown[]) => void {
+ // This is a noop for now while I search for a better debug logger technique
+ return (_message, ..._rest) => {};
}