fix(cr): migration from global `error_log` being empty

pull/399/head
Kobi Meirson 2022-11-05 16:39:04 +02:00
parent e1faeddfe2
commit a9e397335a
No known key found for this signature in database
GPG Key ID: 5D66F732B037CDE1
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ const migrateLogging = data => {
const [globalErrorLogPath, ...globalErrorLogLevel] = (globalLogging.errorLog || `${errorLogPathDefault} ${errorLogLevelDefault}`).split(' ');
const globalErrorLogEnabled =
!('errorLog' in globalLogging) || // errorLog was enabled by default and might not appear at all
globalErrorLogPath !== '/dev/null'; // *or* someone turned it off explicitly
(globalErrorLogPath !== '' && globalErrorLogPath !== '/dev/null'); // *or* someone turned it off explicitly
// set global access_log / error_log files for every domain UNLESS it was explicitly
// enabled for the domain