mirror of
https://github.com/cloudreve/cloudreve.git
synced 2025-10-29 07:37:57 +08:00
i18n: logs in bootstrapper and response code in middleware
This commit is contained in:
@ -10,9 +10,9 @@ func RunScript(name string) {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
if err := invoker.RunDBScript(name, ctx); err != nil {
|
||||
util.Log().Error("数据库脚本执行失败: %s", err)
|
||||
util.Log().Error("Failed to execute database script: %s", err)
|
||||
return
|
||||
}
|
||||
|
||||
util.Log().Info("数据库脚本 [%s] 执行完毕", name)
|
||||
util.Log().Info("Finish executing database script %q.", name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user