diff --git a/server/server.go b/server/server.go index 8688105ee2..a62b14be32 100644 --- a/server/server.go +++ b/server/server.go @@ -172,7 +172,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()) }