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 into
mainfrom
PMM-7110-pprof-server-component
Open

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

Conversation

@pkadej

@pkadej pkadej commented May 12, 2022

Copy link
Copy Markdown
Contributor

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

pkadej commented May 12, 2022

Copy link
Copy Markdown
Contributor Author

@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
Comment thread commands/summary.go Outdated
data, err := getURL(ctx, url)
if err != nil {
logrus.Debugf("%s", err)
if res, _ := helpers.IsOnPmmServer(); res {

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed.

Comment thread helpers/helpers.go Outdated

pmmServer := "pmm-server"

return status.NodeID == pmmServer && status.AgentID == pmmServer, nil

Copy link
Copy Markdown
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
Copy Markdown
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