fix: specify return type of getRequestLogger

This commit is contained in:
Shinwoo PARK 2025-03-20 18:18:55 +09:00
parent 86912c08f1
commit 768b09b961

View File

@ -4,6 +4,6 @@ import { REQUEST_LOG_ID } from "./logged";
const logger = new Logger();
export function getRequestLogger(functionName: string, req: any) {
export function getRequestLogger(functionName: string, req: any): ScopedLogger {
return new ScopedLogger(logger, [functionName], req[REQUEST_LOG_ID])
}