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>
This commit is contained in:
Will 保哥 2022-11-22 07:19:03 +08:00 committed by GitHub
parent c026007a5d
commit d9a77798b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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