Skip to content

Commit

Permalink
Ref: simpler implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Nov 14, 2024
1 parent fb2113c commit 0d6ad46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const createLoggingMiddleware =
export const makeGetLogger =
(fallback: ActualLogger): GetLogger =>
(request) =>
(request && (request as EquippedRequest).res?.locals[metaSymbol]?.logger) ||
(request as EquippedRequest | undefined)?.res?.locals[metaSymbol]?.logger ||
fallback;

export const installDeprecationListener = (logger: ActualLogger) =>
Expand Down

0 comments on commit 0d6ad46

Please sign in to comment.