This repository was archived by the owner on May 30, 2024. It is now read-only.

Description
Describe the bug
Deactivation has a bug related to the logger.
Logs
2021/11/22 09:25:36 http: panic serving 10.244.0.69:37460: interface conversion: error is *fmt.wrapError, not *e.Error
goroutine 1138 [running]:
net/http.(*conn).serve.func1(0xc0009665a0)
/usr/local/go/src/net/http/server.go:1801 +0x147
panic(0x1267560, 0xc0009f1230)
/usr/local/go/src/runtime/panic.go:975 +0x47a
github.com/gitploy-io/gitploy/internal/server/global.GetZapLogLevel(0x1567f40, 0xc0007e2720, 0xc00095b780)
/server/internal/server/global/helper.go:14 +0xf4
github.com/gitploy-io/gitploy/internal/server/api/v1/repos.(*Repo).UpdateRepo(0xc0002c6f80, 0xc0000dde00)
/server/internal/server/api/v1/repos/repo.go:112 +0x60b
github.com/gin-gonic/gin.(*Context).Next(0xc0000dde00)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 +0x3b
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0003dd860, 0xc0000dde00)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:489 +0x618
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0003dd860, 0x157f1a0, 0xc00096d880, 0xc000964c00)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:445 +0x15c
net/http.serverHandler.ServeHTTP(0xc00046c140, 0x157f1a0, 0xc00096d880, 0xc000964c00)
/usr/local/go/src/net/http/server.go:2843 +0xa3
net/http.(*conn).serve(0xc0009665a0, 0x15883a0, 0xc00095aa00)
/usr/local/go/src/net/http/server.go:1925 +0x8ad
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2969 +0x36c
Screenshots
