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

Log file without .gz for tailable (#1525) #1526

Merged
merged 2 commits into from
Nov 29, 2018
Merged

Conversation

pixtron
Copy link
Contributor

@pixtron pixtron commented Nov 7, 2018

  • Convert vows based file-archive-test
  • Do not append .gz to log file if tailable and zippedArchive are true

This PR resolves #1525

* Convert vows based file-archive-test
* Do not append .gz to log file if tailable and zippedArchive are true
@DABH
Copy link
Contributor

DABH commented Nov 29, 2018

Thanks for the PR! Sorry for delay in taking a look.

Does the test actually catch the case you fixed? I.e. does the test fail on master and pass on your branch? If so then should be good to merge, I just want to ensure the test coverage is there :) Let me know!

@pixtron
Copy link
Contributor Author

pixtron commented Nov 29, 2018

Yes the test fails on master (just tested again, with current master), it is running into the 2000ms timeout. The test calls done after 12kb has been logged. On current master the logging stops completely after the first 4kb has been logged, as the rotation fails with an ENOENT when trying to rename testarchive.log to testarchive1.log.gz.

@DABH
Copy link
Contributor

DABH commented Nov 29, 2018

Cool, thanks for checking! Going to go ahead and hit merge -- hopefully this is the last of these tailable issues, but let's see... thanks again

@DABH DABH merged commit ed27e85 into winstonjs:master Nov 29, 2018
@pixtron pixtron deleted the issue-1525 branch December 2, 2019 21:59
Mizumaki pushed a commit to Mizumaki/winston that referenced this pull request Jun 11, 2020
* Log file without .gz for tailable (winstonjs#1525)

* Convert vows based file-archive-test
* Do not append .gz to log file if tailable and zippedArchive are true

* Fix file-archive.test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File tailrolling with zippedArchive fails and logging stops
2 participants