Skip to content

Commit

Permalink
新增flask模块的端口显示
Browse files Browse the repository at this point in the history
  • Loading branch information
lunzhiPenxil committed Dec 29, 2023
1 parent e290213 commit 03ff73d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions OlivOS/adapter/onebotV11/flaskServerAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ def run(self):
self.app()
self.set_config()
self.Proc_config['Flask_app'].config.from_object(self.Proc_config['config'])
self.log(2, OlivOS.L10NAPI.getTrans('OlivOS flask server [{0}] is running', [
self.Proc_config['Flask_name']
self.log(2, OlivOS.L10NAPI.getTrans('OlivOS flask server [{0}] is running on port [{1}]', [
self.Proc_config['Flask_name'],
str(self.Proc_config['Flask_server_port'])
], modelName
))
if self.Proc_config['config'].debug_mode:
Expand Down
4 changes: 2 additions & 2 deletions OlivOS/core/L10N/L10NDataAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
'libEXEModelAPI_0004': 'OlivOS libEXEModel failed: {0}\n{1}',
'libEXEModelAPI_0005': 'OlivOS libEXEModel server [{0}] is running',
'libEXEModelAPI_0006': 'OlivOS libEXEModel server [{0}] exited',
'flaskServerAPI_0001': 'OlivOS flask server [{0}] is running',
'flaskServerAPI_0001': 'OlivOS flask server [{0}] is running on port [{1}]',
'libCWCBEXEModelAPI_0001': 'OlivOS libCWCBEXEModel server [{0}] can`t found target lib',
'libCWCBEXEModelAPI_0002': 'OlivOS libCWCBEXEModel server [{0}] will run under visiable mode',
'libCWCBEXEModelAPI_0003': 'OlivOS libCWCBEXEModel server [{0}] will retry in 10s...',
Expand Down Expand Up @@ -186,7 +186,7 @@
'libEXEModelAPI_0004': 'OlivOS GoCq进程托管服务组件 错误: {0}\n{1}',
'libEXEModelAPI_0005': 'OlivOS GoCq进程托管服务组件 [{0}] 正在运作',
'libEXEModelAPI_0006': 'OlivOS GoCq进程托管服务组件 [{0}] 已经存在',
'flaskServerAPI_0001': 'OlivOS onebotV11 flask POST服务组件 [{0}] 正在运作',
'flaskServerAPI_0001': 'OlivOS onebotV11 flask POST服务组件 [{0}] 正在运作于端口 [{1}]',
'libCWCBEXEModelAPI_0001': 'OlivOS ComWeChatBotClient进程托管服务组件 [{0}] 无法找到库文件',
'libCWCBEXEModelAPI_0002': 'OlivOS ComWeChatBotClient进程托管服务组件 [{0}] 将在前台模式下运行',
'libCWCBEXEModelAPI_0003': 'OlivOS ComWeChatBotClient进程托管服务组件 [{0}] 将在10秒后重试...',
Expand Down

0 comments on commit 03ff73d

Please sign in to comment.