Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

PMM-7110 Changed log level#219

Open
pkadej wants to merge 6 commits intomainfrom
PMM-7110-pprof-server-component
Open

PMM-7110 Changed log level#219
pkadej wants to merge 6 commits intomainfrom
PMM-7110-pprof-server-component

Conversation

@pkadej
Copy link
Contributor

@pkadej pkadej commented May 12, 2022

@pkadej pkadej requested a review from BupycHuk as a code owner May 12, 2022 22:49
@pkadej
Copy link
Contributor Author

pkadej commented May 12, 2022

@BupycHuk
May I ask you to check my comment in https://jira.percona.com/browse/PMM-7110 please?
Thank you.

@pkadej pkadej marked this pull request as draft May 17, 2022 20:37
@pkadej pkadej marked this pull request as ready for review May 17, 2022 20:49
data, err := getURL(ctx, url)
if err != nil {
logrus.Debugf("%s", err)
if res, _ := helpers.IsOnPmmServer(); res {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this to if on line 267

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.


pmmServer := "pmm-server"

return status.NodeID == pmmServer && status.AgentID == pmmServer, nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think checking for node id is enough

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@pkadej pkadej requested a review from BupycHuk May 24, 2022 20:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants