Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

enableDataDogProfiler() err check is wrong #2201

@R-Santev

Description

@R-Santev

enableDataDogProfiler() err check is wrong

Description

A wrong variable is checked for error is made in server/server.go:175
image

Your environment

  • OS and version.
    Irrelevant.
  • The version of the Polygon Edge.
    Version 1.3.3
  • The branch that causes this issue.
    develop
  • Locally or Cloud hosted (which provider).
    Irrelevant.
  • Please confirm if the validators are running under containerized environment (K8s, Docker, etc.).
    Irrelevant.

Expected behavior

  • Tell us what should happen.
    " DataDog profiler setup failed" must be logged when ddErr is != nil
  • Tell us what happened instead.
    It doesn't enter the if statement

Proposed solution

I am attaching a PR resolving the issue: #2200

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions