import cycle not allowed

This commit is contained in:
2023-01-18 17:46:25 +08:00
parent 8d3a64b26e
commit 26f46f1eb6
35 changed files with 355 additions and 341 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package middleware
import (
"cutego/pkg/common"
"cutego/pkg/logging"
"github.com/gin-gonic/gin"
"net/http"
"runtime/debug"
@@ -10,7 +10,7 @@ import (
func Recover(c *gin.Context) {
defer func() {
if r := recover(); r != nil {
common.ErrorLog("panic: %v\n", r)
logging.ErrorLog("panic: %v\n", r)
debug.PrintStack()
c.JSON(http.StatusOK, gin.H{
"code": http.StatusInternalServerError,