fix: lint

pull/399/head
Kobi Meirson 2022-10-20 15:52:30 +03:00
parent e7a6b2a535
commit 550e36d461
No known key found for this signature in database
GPG Key ID: 5D66F732B037CDE1
1 changed files with 3 additions and 3 deletions

View File

@ -32,16 +32,16 @@ export const getDomainAccessLog = (domain, global) => {
return path +
(global.logging.cloudflare.computed ? ' cloudflare' : '') +
(domain.logging.accessLogParameters.computed.trim() ? ` ${domain.logging.accessLogParameters.computed.trim()}`: '')
(domain.logging.accessLogParameters.computed.trim() ? ` ${domain.logging.accessLogParameters.computed.trim()}`: '');
};
export const getDomainErrorLog = (domain) => {
let path = domain.logging.errorLogPath.computed.trim()
let path = domain.logging.errorLogPath.computed.trim();
if (!path) {
path = `/var/log/nginx/${domain.server.domain.computed}.error.log`;
}
return `${path} ${domain.logging.errorLogLevel.computed}`;
}
};
export const accessLogParamsDefault = 'buffer=512k flush=1m';