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

Logs via a browser #2235

Merged
merged 5 commits into from
Jan 24, 2017
Merged

Logs via a browser #2235

merged 5 commits into from
Jan 24, 2017

Conversation

dadgar
Copy link
Contributor

@dadgar dadgar commented Jan 24, 2017

This PR add plain text option for viewing logs. It is accessible via the logs HTTP endpoint:

http://192.168.74.133:4646/v1/client/fs/logs/b6966442-d425-2c7d-b85d-7e36cf175934?task=redis&type=stdout&plain=true

if follow, err = strconv.ParseBool(q.Get("follow")); err != nil {
return nil, fmt.Errorf("Failed to parse follow field to boolean: %v", err)
followStr := q.Get("follow")
if followStr != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Inline the above statement since you are not using it outside the block.

}

plainStr := q.Get("plain")
if plainStr != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@dadgar dadgar merged commit 0be1b32 into master Jan 24, 2017
@dadgar dadgar deleted the f-http-logs branch January 24, 2017 00:59
@github-actions
Copy link

github-actions bot commented Apr 6, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2023
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