u
This commit is contained in:
1 parent
4e42a01b97
commit
428d370874
8 files changed
+84
-44
No files matched your search
@@ -1,8 +1,8 @@
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"base-framework/pkg/reponse"
|
||||
"base-framework/pkg/router"
|
||||
"base-framework/pkg/utils/response"
|
||||
"log"
|
||||
"runtime/debug"
|
||||
)
|
||||
@@ -14,7 +14,7 @@ func Recovery() router.HandlerFunc {
|
||||
// 打印 panic 信息和堆栈
|
||||
log.Printf("[Recovery] panic recovered: %v\n%s", err, debug.Stack())
|
||||
|
||||
response.Error(c).Send()
|
||||
reponse.Error(c).Send()
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in new issue
Block a user