diff options
| author | Christophe Monniez <moc@odoo.com> | 2018-05-04 10:09:31 +0200 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2018-05-04 10:09:31 +0200 |
| commit | 7202205688d9c75377925011e07938e50030b617 (patch) | |
| tree | 95fa8d50d2ddbf7ab5d093e6a530517efb2d4dac /setup/package.py | |
| parent | b0c08a684683e4247b6b78160f37524d16acd48f (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-x | setup/package.py | 2 |
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): |
