diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-12-31 02:16:27 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-12-31 02:16:27 +0000 |
| commit | 1a3e284c2bce59c7aeb87ee2e5d53fb3c79400b0 (patch) | |
| tree | da95db0b9de2b5e7a6ece0dc3039cd9e4f729c7b /kolla | |
| parent | 6fcde0dab1d8590cecfbbe942704e6848e366584 (diff) | |
| parent | 991be99c894f249cada7035d7fff1909e02d89e5 (diff) | |
| download | kolla-1a3e284c2bce59c7aeb87ee2e5d53fb3c79400b0.tar.gz kolla-1a3e284c2bce59c7aeb87ee2e5d53fb3c79400b0.zip | |
Merge "Make the logging more safe"
Diffstat (limited to 'kolla')
| -rwxr-xr-x | kolla/cmd/build.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index 33627a859..842967d54 100755 --- a/kolla/cmd/build.py +++ b/kolla/cmd/build.py @@ -138,10 +138,10 @@ class WorkerThread(Thread): if image['status'] in ['built', 'unmatched', 'parent_error']: break - except ConnectionError as e: - LOG.error(e) - LOG.error('Make sure Docker is running and that you have ' - 'the correct privileges to run Docker (root)') + except ConnectionError: + LOG.exception('Make sure Docker is running and that you' + ' have the correct privileges to run Docker' + ' (root)') image['status'] = "connection_error" break self.end_task(image) |
