|
@@ -59,12 +59,12 @@ def homepage_recommend():
|
|
|
return json.dumps(result)
|
|
|
else:
|
|
|
log_.error('categoryId error, categoryId = {}'.format(category_id))
|
|
|
- result = {'code': -1, 'message': 'fail'}
|
|
|
+ result = {'code': -1, 'message': 'fail', 'traceback': traceback.format_exc()}
|
|
|
return json.dumps(result)
|
|
|
|
|
|
except Exception as e:
|
|
|
log_.error(e)
|
|
|
- result = {'code': -1, 'message': 'fail'}
|
|
|
+ result = {'code': -1, 'message': 'fail', 'traceback': traceback.format_exc()}
|
|
|
return json.dumps(result)
|
|
|
|
|
|
|
|
@@ -128,11 +128,12 @@ def app_video_hot_list():
|
|
|
result = {'code': -1, 'message': 'fail'}
|
|
|
return json.dumps(result)
|
|
|
|
|
|
-def serve_forever(ip='0.0.0.0', port=5000):
|
|
|
+
|
|
|
+def serve_forever(ip='0.0.0.0', port=5001):
|
|
|
pywsgi.WSGIServer((ip, port), app).serve_forever()
|
|
|
|
|
|
|
|
|
-def apprun(MULTI_PROCESS=True, ip='0.0.0.0', port=5000):
|
|
|
+def apprun(MULTI_PROCESS=True, ip='0.0.0.0', port=5001):
|
|
|
if MULTI_PROCESS == False:
|
|
|
WSGIServer((ip, port), app).serve_forever()
|
|
|
else:
|