From 594ea2ab3019259f1f60c7bbeb28618ae5dd868e Mon Sep 17 00:00:00 2001 From: brancan Date: Thu, 7 May 2026 15:03:27 -0300 Subject: [PATCH] fix(basemgr): trailing newline in FreeSWITCH Backgrounding check FreeSWITCH stderr ends with 'Backgrounding.\n', not 'Backgrounding.', so the old endswith check always failed and logged a false ERROR on every normal startup. --- liberator/basemgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liberator/basemgr.py b/liberator/basemgr.py index e9bf82c..f8509bd 100644 --- a/liberator/basemgr.py +++ b/liberator/basemgr.py @@ -201,7 +201,7 @@ def fsinstance(data): fsrun = Popen(['/usr/local/bin/freeswitch', '-nc', '-reincarnate'], stdout=PIPE, stderr=PIPE) _, stderr = bdecode(fsrun.communicate()) - if stderr and not stderr.endswith('Backgrounding.'): + if stderr and not stderr.endswith('Backgrounding.\n'): result = False stderr = stderr.replace('\n', '') logger.error(f"module=liberator, space=basemgr, action=fsinstance.fsrun, error={stderr}")