summaryrefslogtreecommitdiffstats
path: root/openstack/common/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/common/service.py')
-rw-r--r--openstack/common/service.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/openstack/common/service.py b/openstack/common/service.py
index 910a738..3186d56 100644
--- a/openstack/common/service.py
+++ b/openstack/common/service.py
@@ -36,6 +36,7 @@ from openstack.common.gettextutils import _
from openstack.common import log as logging
from openstack.common import threadgroup
+
rpc = extras.try_import('openstack.common.rpc')
CONF = cfg.CONF
LOG = logging.getLogger(__name__)
@@ -250,10 +251,12 @@ class ProcessLauncher(object):
if os.WIFSIGNALED(status):
sig = os.WTERMSIG(status)
- LOG.info(_('Child %(pid)d killed by signal %(sig)d'), locals())
+ LOG.info(_('Child %(pid)d killed by signal %(sig)d'),
+ dict(pid=pid, sig=sig))
else:
code = os.WEXITSTATUS(status)
- LOG.info(_('Child %(pid)d exited with status %(code)d'), locals())
+ LOG.info(_('Child %(pid)s exited with status %(code)d'),
+ dict(pid=pid, code=code))
if pid not in self.children:
LOG.warning(_('pid %d not in child list'), pid)