1. 增加前端测试界面
2. 修复重复输出日志的问题
This commit is contained in:
@@ -108,8 +108,8 @@ func (app *Application) Start() error {
|
||||
app.logger.Info("API启动成功")
|
||||
|
||||
// 启动任务执行器组件
|
||||
app.logger.Info("启动任务执行器")
|
||||
app.TaskExecutor.Start()
|
||||
app.logger.Info("任务执行器启动成功")
|
||||
|
||||
return nil
|
||||
}
|
||||
@@ -123,8 +123,8 @@ func (app *Application) Stop() error {
|
||||
}
|
||||
|
||||
// 停止任务执行器组件
|
||||
app.logger.Info("停止任务执行器")
|
||||
app.TaskExecutor.Stop()
|
||||
app.logger.Info("任务执行器已停止")
|
||||
|
||||
// 停止存储组件
|
||||
if err := app.Storage.Disconnect(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user