(Feat): Initial Commit
Some checks failed
Build & Test / build-test (push) Has been cancelled
Build & Test / swagger-codegen-cli (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled

This commit is contained in:
2026-07-03 19:41:31 +05:30
commit 7e940c83a7
461 changed files with 45002 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package middleware
import (
"allaboutapps.dev/aw/go-starter/internal/util"
"github.com/labstack/echo/v4"
)
func LogErrorFuncWithRequestInfo(c echo.Context, err error, stack []byte) error {
log := util.LogFromContext(c.Request().Context())
log.Error().Err(err).Bytes("stack", stack).Msg("PANIC RECOVER")
return err
}