vapor/console-kit

Console output generated via Vapor request loggers lagging in Linux deployment

betaphi opened this issue · 0 comments

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