Skip to content

Commit

Permalink
Set 'combined' as default log format when not using Cloudflare (digit…
Browse files Browse the repository at this point in the history
…alocean#410)

* Fix the accessLogParamsDefault issue

This fixes digitalocean#409

* Fixed for cloudflare logformat

Co-authored-by: Matt Cowley <[email protected]>
  • Loading branch information
doggy8088 and MattIPv4 authored Nov 21, 2022
1 parent c026007 commit d9a7779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nginxconfig/util/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`: '');
};

Expand Down

0 comments on commit d9a7779

Please sign in to comment.