-
-
Notifications
You must be signed in to change notification settings - Fork 586
fix: strip stream headers from logs #454
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
fix: strip stream headers from logs #454
Conversation
Codecov Report
@@ Coverage Diff @@
## main #454 +/- ##
==========================================
+ Coverage 68.44% 68.63% +0.18%
==========================================
Files 21 21
Lines 1892 1932 +40
==========================================
+ Hits 1295 1326 +31
- Misses 480 486 +6
- Partials 117 120 +3
Continue to review full report at Codecov.
|
mdelapenya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Good job here @funvit! 👏👏👏 |
* modify log consumer test to show how stripping logs sometimes fails bug introduced by #454 * fix: implement the docker log stream specification to strip headers from logs * chore: lint * chore: use require --------- Co-authored-by: Manuel de la Peña <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]>
Closes #365
DockerContainerfuncLogsnow strips header for each line.This fix cannot be used with TTY mode.
Why strip header? Due to setting TTY breaks some tests (ex: Test_ShouldRecognizeLogTypes) ...