We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e1218 commit b3692acCopy full SHA for b3692ac
backend/src/util/debug.ts
backend/src/util/file-resolver.ts
backend/src/util/logger.ts
@@ -1,4 +1,3 @@
1
-import { AsyncLocalStorage } from 'async_hooks'
2
import { mkdirSync } from 'fs'
3
import path from 'path'
4
import { format } from 'util'
@@ -17,8 +16,6 @@ import {
17
16
const MAX_LENGTH = 65535 // Max total log size is sometimes 100k (sometimes 65535?)
18
const BUFFER = 1000 // Buffer for context, etc.
19
20
-const loggerAsyncStorage = new AsyncLocalStorage<LoggerContext>()
21
-
22
export const withLoggerContext = <T>(
23
additionalContext: Partial<LoggerContext>,
24
fn: () => Promise<T>,
0 commit comments