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

Console output generated via Vapor request loggers lagging in Linux deployment #186

Closed
betaphi opened this issue Sep 26, 2023 · 0 comments · Fixed by #187
Closed

Console output generated via Vapor request loggers lagging in Linux deployment #186

betaphi opened this issue Sep 26, 2023 · 0 comments · Fixed by #187
Labels
bug Something isn't working

Comments

@betaphi
Copy link

betaphi commented Sep 26, 2023

Describe the bug

When using ConsoleKit version 4.8.0 the log output that is created via the request loggers in Vapor is not printed to the console immediately as it was generated but only every 30 seconds or so in bulk.

The issue does not show in Xcode but on Linux.

In the deployment in question, I'm using Docker Swarm, and usually in that scenario logs are read via the docker service logs -f ... command. But the issue also shows when investigating a single Docker container via docker logs -f ....

To Reproduce

Steps to reproduce the behavior:

  1. Deploy a Vapor App via Docker on Linux
  2. View logs via docker logs -f ...
  3. Generate logs entries over time and investigate the output

Expected behavior

Log entries appearing as they are generated as it was with ConsoleKit prior to version 4.8.0

Environment

  • Vapor Framework version: Any
  • ConsoleKit version: 4.8.0
@betaphi betaphi added the bug Something isn't working label Sep 26, 2023
@0xTim 0xTim linked a pull request Sep 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant