Code Review
/
nfvbench.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NFVBENCH-44 Use message when logging exception
[nfvbench.git]
/
nfvbench
/
nfvbenchd.py
diff --git
a/nfvbench/nfvbenchd.py
b/nfvbench/nfvbenchd.py
index
4772700
..
76906c5
100644
(file)
--- a/
nfvbench/nfvbenchd.py
+++ b/
nfvbench/nfvbenchd.py
@@
-16,7
+16,6
@@
import json
import Queue
import json
import Queue
-import traceback
import uuid
from flask import Flask
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:
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))
results = result_json(STATUS_ERROR, str(exc))
- LOG.exception()
+ LOG.exception(
'NFVbench runner exception:'
)
if Ctx.request_from_socketio:
socketio.emit('run_end', results)
if Ctx.request_from_socketio:
socketio.emit('run_end', results)