From a9e397335a8bb8dfe03d229df33f11e93a518d54 Mon Sep 17 00:00:00 2001 From: Kobi Meirson Date: Sat, 5 Nov 2022 16:39:04 +0200 Subject: [PATCH] fix(cr): migration from global `error_log` being empty --- src/nginxconfig/util/vue_backwards_compatibility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nginxconfig/util/vue_backwards_compatibility.js b/src/nginxconfig/util/vue_backwards_compatibility.js index 447fdb1..a7e2b1f 100644 --- a/src/nginxconfig/util/vue_backwards_compatibility.js +++ b/src/nginxconfig/util/vue_backwards_compatibility.js @@ -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