diff --git a/server/server.go b/server/server.go index bae93ed4ba..190f3f6e6a 100644 --- a/server/server.go +++ b/server/server.go @@ -168,7 +168,7 @@ func NewServer(config *Config) (*Server, error) { } // Set up datadog profiler - if ddErr := m.enableDataDogProfiler(); err != nil { + if ddErr := m.enableDataDogProfiler(); ddErr != nil { m.logger.Error("DataDog profiler setup failed", "err", ddErr.Error()) }