Fix pep8 error for vfc-nfvo-catalog 31/25431/1
authorfujinhua <fu.jinhua@zte.com.cn>
Mon, 4 Dec 2017 09:05:42 +0000 (17:05 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Mon, 4 Dec 2017 09:05:42 +0000 (17:05 +0800)
Change-Id: Ie234e53d82830083ab7681019444e6a02894b5e0
Issue-ID: VFC-609
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
catalog/jobs/views.py

index d882542..febcfce 100644 (file)
@@ -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})