Set 'combined' as default log format when not using Cloudflare (#410)

* Fix the accessLogParamsDefault issue

This fixes #409

* Fixed for cloudflare logformat

Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
pull/411/head^2
Will 保哥 2 years ago committed by GitHub
parent c026007a5d
commit d9a77798b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,7 +40,7 @@ export const getDomainAccessLog = (domain, global) => {
} }
return path + return path +
(global.logging.cloudflare.computed ? ' cloudflare' : '') + (global.logging.cloudflare.computed ? ' cloudflare' : ' combined') +
(domain.logging.accessLogParameters.computed.trim() ? ` ${domain.logging.accessLogParameters.computed.trim()}`: ''); (domain.logging.accessLogParameters.computed.trim() ? ` ${domain.logging.accessLogParameters.computed.trim()}`: '');
}; };

Loading…
Cancel
Save