From d7391f8e73a59ff02f5c8f16491f1ec6fa3922fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Sun, 1 Oct 2023 14:56:16 +0200 Subject: [PATCH] stack/erp5: set $PYTHONUNBUFFERED for zope stdout/stderr is sent to supervisor and we don't want buffering the output in that case, because it introduces a delay in the output and break the usage of `slapos node supervisorctl fg` to re-attach the process and use pdb --- stack/erp5/buildout.hash.cfg | 2 +- stack/erp5/instance-zope.cfg.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stack/erp5/buildout.hash.cfg b/stack/erp5/buildout.hash.cfg index d55a286d3..93a3efa26 100644 --- a/stack/erp5/buildout.hash.cfg +++ b/stack/erp5/buildout.hash.cfg @@ -86,7 +86,7 @@ md5sum = 0ac4b74436f554cd677f19275d18d880 [template-zope] filename = instance-zope.cfg.in -md5sum = e6c94c2a48788683bf0d63d135a44932 +md5sum = 9e6440425167a506bd473a3697eaa9e6 [template-balancer] filename = instance-balancer.cfg.in diff --git a/stack/erp5/instance-zope.cfg.in b/stack/erp5/instance-zope.cfg.in index e5d017c7b..960b90db2 100644 --- a/stack/erp5/instance-zope.cfg.in +++ b/stack/erp5/instance-zope.cfg.in @@ -78,6 +78,7 @@ environment += PATH=${binary-link:target-directory}:{{ parameter_dict['coreutils'] }}/bin:{{ parameter_dict['perl_dbd_mariadb_path'] }} TZ={{ slapparameter_dict['timezone'] }} MATPLOTLIBRC={{ parameter_dict['matplotlibrc'] }} + PYTHONUNBUFFERED=1 INSTANCE_HOME=${:instance-home} CAUCASE={{ slapparameter_dict['caucase-url'] }} FONTCONFIG_FILE=${fontconfig-conf:output} -- 2.30.9