fix: disable profiler in production mode (#4925)

pull/4909/head
Maximilian Krauß 3 months ago committed by GitHub
parent 9971cbeed4
commit e724a7ef72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -52,10 +52,12 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
echoServer.Use(middleware.Recover())
s.echoServer = echoServer
if profile.Mode != "prod" {
// Initialize profiler
s.profiler = profiler.NewProfiler()
s.profiler.RegisterRoutes(echoServer)
s.profiler.StartMemoryMonitor(ctx)
}
workspaceBasicSetting, err := s.getOrUpsertWorkspaceBasicSetting(ctx)
if err != nil {

Loading…
Cancel
Save