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

Use smart buffering #520

Closed
wants to merge 1 commit into from

Conversation

inesusvet
Copy link
Contributor

Summary:
when reading the subprocess stdout to prevent extra new lines in output

Inspired by https://github.com/uber-go/zap/blob/0ba452dbe15478739ad4bab1067706018a3062c6/zapio/writer.go#L100


ttpforge reads stdout/stderr inaccurately causing such lines in logs:

INFO	[STDERR] curl: (56) Received HTT
INFO	[STDERR] P code 407 from proxy after CONNECT

the code: https://fburl.com/code/52hzjy4j

Differential Revision: D66702400

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66702400

inesusvet added a commit to inesusvet/TTPForge that referenced this pull request Dec 4, 2024
Summary:

when reading the subprocess stdout to prevent extra new lines in output

Inspired by https://github.com/uber-go/zap/blob/0ba452dbe15478739ad4bab1067706018a3062c6/zapio/writer.go#L100

---
ttpforge reads stdout/stderr inaccurately causing such lines in logs:

```
INFO	[STDERR] curl: (56) Received HTT
INFO	[STDERR] P code 407 from proxy after CONNECT
```
the code: https://fburl.com/code/52hzjy4j

Differential Revision: D66702400
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66702400

Summary:

when reading the subprocess stdout to prevent extra new lines in output

Inspired by https://github.com/uber-go/zap/blob/0ba452dbe15478739ad4bab1067706018a3062c6/zapio/writer.go#L100

---
ttpforge reads stdout/stderr inaccurately causing such lines in logs:

```
INFO	[STDERR] curl: (56) Received HTT
INFO	[STDERR] P code 407 from proxy after CONNECT
```
the code: https://fburl.com/code/52hzjy4j

Differential Revision: D66702400
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66702400

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 1d2f42f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants