summaryrefslogtreecommitdiff
path: root/setup/package.py
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2018-05-04 10:09:31 +0200
committerChristophe Monniez <moc@odoo.com>2018-05-04 10:09:31 +0200
commit7202205688d9c75377925011e07938e50030b617 (patch)
tree95fa8d50d2ddbf7ab5d093e6a530517efb2d4dac /setup/package.py
parentb0c08a684683e4247b6b78160f37524d16acd48f (diff)
[FIX] packaging: avoid traceback on virtual machine timeout
When the virtual machine used to build MS Win package takes too much time (to build or to test the build), a warning is logged and the VM is killed. Before this commit, the PID of the process was passed as an argument to the warning method, causing a traceback.
Diffstat (limited to 'setup/package.py')
-rwxr-xr-xsetup/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup/package.py b/setup/package.py
index eeea18aabe1..dd15b84e224 100755
--- a/setup/package.py
+++ b/setup/package.py
@@ -181,7 +181,7 @@ class KVM(object):
self.login = login
def timeout(self,signum,frame):
- logging.warning("vm timeout kill",self.pid)
+ logging.warning("vm timeout kill (pid: {})".format(self.pid))
os.kill(self.pid,15)
def start(self):