Skip to content

Commit

Permalink
print BUILD_ID on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
jokester committed Oct 21, 2024
1 parent ad614a0 commit f1997b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
PLAN_FINISH_DELTA = 7 * 24 * 60 * 60 # 计划完结延时时间
PLAN_DELETE_DELTA = 7 * 24 * 60 * 60 # 计划删除延时时间
OUTPUT_WAIT_SECONDS = 60 * 5 # 导出等待时间
BUILD_ID = env.get('MOEFLOW_BUILD_ID', 'unset')
# -----------
# 默认设置
# -----------
Expand Down
2 changes: 1 addition & 1 deletion app/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def init_flask_app(app: Flask):
register_apis(app)
babel.init_app(app)
apikit.init_app(app)
logger.info("-" * 50)
logger.info(f"----- build id: {app_config['BUILD_ID']}")
logger.info("站点支持语言: " + str([str(i) for i in babel.list_translations()]))
oss.init(app.config) # 文件储存

Expand Down

0 comments on commit f1997b6

Please sign in to comment.