fix: log disabled caused server to not work

Massimo Melina committed Jan 3, 2022 at 13:42 UTC d89c1c448718b74959c45f6ba1b507cf5b6c1098
1 file changed +2 -1
src/log.ts
+2 -1
@@ -24,6 +24,7 @@ subscribe('log', path => {
24 }, 'access.log')
25
26 export function log(): Koa.Middleware {
27 - return (ctx, next) => // wrapping in a function will make it use current value
27 + return (ctx, next) => // wrapping in a function will make it use current 'mw' value
28 accessLogger.mw?.(ctx, next)
29 + || next()
30 }