feat(platform)!: log exclusively as structured json
Request access logs, panics, migration output and fatal errors are now emitted through the JSON slog handler. BREAKING CHANGE: UPTIME_LOG_FORMAT is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
8d1093cd2d
commit
e9c7394c8b
8 files changed
+108
-48
No files matched your search
@@ -8,7 +8,6 @@ import (
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
"github.com/redis/go-redis/v9"
|
||||
|
||||
@@ -63,10 +62,3 @@ func Connect(ctx context.Context, c config.Common, log *slog.Logger) (*Deps, err
|
||||
}
|
||||
return d, nil
|
||||
}
|
||||
|
||||
func NewRouter() *gin.Engine {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
r := gin.New()
|
||||
r.Use(gin.Recovery())
|
||||
return r
|
||||
}
|
||||
Reference in new issue
Block a user