【新增】日志打印
This commit is contained in:
parent
df644b7230
commit
0662a83cfe
|
@ -45,6 +45,8 @@ def extract_summarization():
|
|||
|
||||
# 封装为字典
|
||||
res = {'code': 1, 'message': '数据获取成功', 'keywords': result_keywords, 'summarization': result_summarization}
|
||||
logger.info('/show接口数据获取成功')
|
||||
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
res = {'code': 0, 'message': '系统内部错误,请联系管理员', 'data': ''}
|
||||
|
|
3
run.py
3
run.py
|
@ -33,12 +33,13 @@ app.root_path = abspath(dirname(__file__))
|
|||
# 展示网站主页
|
||||
@app.route('/', methods=['GET', 'POST'])
|
||||
def index():
|
||||
logger.info('访问home.html')
|
||||
logger.info("$_$ kill_bug_team run, to the moon $_$")
|
||||
return render_template('home.html')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.debug = True
|
||||
|
||||
logger.info('项目运行,GO')
|
||||
# main run
|
||||
app.run(host='0.0.0.0', port=8188)
|
||||
|
|
Loading…
Reference in New Issue