fix(cr): migration from global `error_log` being empty
parent
e1faeddfe2
commit
a9e397335a
|
@ -47,7 +47,7 @@ const migrateLogging = data => {
|
||||||
const [globalErrorLogPath, ...globalErrorLogLevel] = (globalLogging.errorLog || `${errorLogPathDefault} ${errorLogLevelDefault}`).split(' ');
|
const [globalErrorLogPath, ...globalErrorLogLevel] = (globalLogging.errorLog || `${errorLogPathDefault} ${errorLogLevelDefault}`).split(' ');
|
||||||
const globalErrorLogEnabled =
|
const globalErrorLogEnabled =
|
||||||
!('errorLog' in globalLogging) || // errorLog was enabled by default and might not appear at all
|
!('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
|
// set global access_log / error_log files for every domain UNLESS it was explicitly
|
||||||
// enabled for the domain
|
// enabled for the domain
|
||||||
|
|
Loading…
Reference in New Issue