aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKerim Gokarslan <kgokarsl@cisco.com>2017-10-18 17:02:44 -0700
committerKerim Gokarslan <kgokarsl@cisco.com>2017-10-18 17:02:44 -0700
commit253c4a3b60238365cfce730647dec67e3f94a575 (patch)
tree42a7502535c4f08f2a51ee3125f8b8ab777040bc
parent2166a5e747c76a61b54b71c880b75c8f9cd5f948 (diff)
NFVBENCH-44 Use message when logging exception
Change-Id: I4469d4738aa8bd37cc8bb9184fd73b82291e2c03 Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
-rw-r--r--nfvbench/nfvbenchd.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/nfvbench/nfvbenchd.py b/nfvbench/nfvbenchd.py
index 4772700..76906c5 100644
--- a/nfvbench/nfvbenchd.py
+++ b/nfvbench/nfvbenchd.py
@@ -16,7 +16,6 @@
import json
import Queue
-import traceback
import uuid
from flask import Flask
@@ -236,10 +235,8 @@ class WebSocketIoServer(object):
self.fluent_logger.start_new_run()
results = self.nfvbench_runner.run(config, config)
except Exception as exc:
- print 'NFVbench runner exception:'
- traceback.print_exc()
results = result_json(STATUS_ERROR, str(exc))
- LOG.exception()
+ LOG.exception('NFVbench runner exception:')
if Ctx.request_from_socketio:
socketio.emit('run_end', results)