removed errors_in_main_log as it can be achieved by specifying same filename for errors
Massimo Melina committed
Mar 16, 2022 at 22:21 UTC
16b4e2a5d14dda2b734fb20361e8e128ed4467ec
1 file changed
+1
-1
server/src/log.ts
+1
-1
@@ -56,7 +56,7 @@ export function log(): Koa.Middleware {
56
return async (ctx, next) => { // wrapping in a function will make it use current 'mw' value
57
await next()
58
const isError = ctx.status >= 400
59
- const logger = isError && !getConfig('errors_in_main_log') && errorLogger || accessLogger
59
+ const logger = isError && errorLogger || accessLogger
60
const freq = getConfig('log_rotation')?.[0]
61
const { stream, last, path } = logger
62
if (!stream) return