Просмотр исходного кода

docs: add changelog for PR 14289

zmstone 1 год назад
Родитель
Сommit
38224fb14d
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      changes/ce/fix-14289.en.md

+ 8 - 0
changes/ce/fix-14289.en.md

@@ -0,0 +1,8 @@
+Fix log file path issue when importing config from a different environment.
+
+Environment variable `EMQX_LOG_DIR` in docker is `/opt/emqx/log`, but `/var/log/emqx/` when installed from RPM/DEB packages.
+
+Prior to this fix, log file paths (default file handler and audit handler) are environment-variable interpolated when being exported.
+This causes the config import to a different environment.
+
+This fix ensures that the log file paths are not environment-variable interpolated when being exported. It also made sure that the absolute paths log directory from old version export are converted back to environment-variable if the path does not exist in the new environment.