fix: batch create tasks with duplicate names (#635)

This commit is contained in:
Levi authored and GitHub committed 2024-08-09 12:41:03 +08:00
1 parent 1f791c66e6
commit 7ca1cc8c64
6 files changed
+52 -17

No files matched your search

+1 -1
View File
@@ -154,7 +154,7 @@ func BuildServer(startCfg *model.StartConfig) (*http.Server, net.Listener, error
defer func() {
if v := recover(); v != nil {
err := errors.WithStack(fmt.Errorf("%v", v))
Downloader.Logger.Error().Stack().Err(err).Msg("http server panic")
Downloader.Logger.Error().Stack().Err(err).Msgf("http server panic: %s %s", r.Method, r.RequestURI)
WriteJson(w, model.NewErrorResult(err.Error(), model.CodeError))
}
}()