aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-12-04 17:05:42 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-12-04 17:05:42 +0800
commit2c655ca440b744a960207a17b2d98d2392213aa7 (patch)
tree91dfa154b92b494980118b029ad42e70178dd67c
parenta97f123e12ea027e1d62682fd27fc9808e9a3e93 (diff)
Fix pep8 error for vfc-nfvo-catalog
Change-Id: Ie234e53d82830083ab7681019444e6a02894b5e0 Issue-ID: VFC-609 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--catalog/jobs/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/catalog/jobs/views.py b/catalog/jobs/views.py
index d8825429..febcfcec 100644
--- a/catalog/jobs/views.py
+++ b/catalog/jobs/views.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
+import traceback
from rest_framework.response import Response
from rest_framework.views import APIView
@@ -42,4 +43,6 @@ class JobView(APIView):
JobUtil.add_job_status(job_id, progress, desc, error_code=errcode)
return Response(data={'result': 'ok'})
except Exception as e:
+ logger.error(e.message)
+ logger.error(traceback.format_exc())
return Response(data={'result': 'error', 'msg': e.message})