From 991be99c894f249cada7035d7fff1909e02d89e5 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Tue, 29 Dec 2015 15:26:45 +0800 Subject: Make the logging more safe TrivialFix Change-Id: I72c541c1846e503486b402e88d5b29364920fc83 --- kolla/cmd/build.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kolla/cmd') 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) -- cgit v1.2.3