Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove global logp calls from libbeat/kibana and libbeat/template #18258

Merged
merged 2 commits into from
May 7, 2020

Conversation

kvch
Copy link
Contributor

@kvch kvch commented May 5, 2020

No description provided.

@kvch kvch added [zube]: In Review Team:Services (Deprecated) Label for the former Integrations-Services team labels May 5, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 5, 2020
@kvch kvch requested a review from urso May 5, 2020 17:17
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 5, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview stats

Expand to view the summary

Build stats

  • Build Cause: [Branch indexing]

  • Start Time: 2020-05-06T15:17:57.554+0000

  • Duration: 111 min 5 sec (6664982)

  • Commit: 0f52f74

Test stats 🧪

Test Results
Failed 0
Passed 7759
Skipped 1236
Total 8995

@andresrc andresrc removed the needs_team Indicates that the issue/PR needs a Team:* label label May 6, 2020
@@ -271,7 +274,7 @@ func (client *Client) ImportJSON(url string, params url.Values, jsonBody map[str

body, err := json.Marshal(jsonBody)
if err != nil {
logp.Err("Failed to json encode body (%v): %#v", err, jsonBody)
client.log.Errorf("Failed to json encode body (%v): %#v", err, jsonBody)
Copy link

Choose a reason for hiding this comment

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

I wonder if this log is redundant. The error returned also contains the original error message. The jsonBody maybe we always want to log at debug level?

Would it make sense to add debug logs to other places? E.g. before and after a request is send?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've just run setup --dashboards with debug logging. It prints which dashboard it is loading and if there is an error it is logged, too. I think that should be enough.

@kvch kvch requested a review from urso May 6, 2020 12:31
@kvch kvch force-pushed the refactoring-remove-logp-libbeat branch from 25eaa04 to 0f52f74 Compare May 6, 2020 12:37
@kvch kvch merged commit cfffc58 into elastic:master May 7, 2020
@andresrc
Copy link
Contributor

andresrc commented May 8, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants