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

Flask: Decrease verbosity of logs #905

Open
3 tasks
cklamann opened this issue Oct 26, 2021 · 1 comment
Open
3 tasks

Flask: Decrease verbosity of logs #905

cklamann opened this issue Oct 26, 2021 · 1 comment

Comments

@cklamann
Copy link
Contributor

cklamann commented Oct 26, 2021

  • remove debugging info statements wherever possible
  • perform a brief "audit" of existing logs/logging statements in order to help team arrive at a standard for future development. What existing logs are useful? Which are extraneous? What is/should be the difference between 'debug' and 'info'?
  • update logs to reflect new standards
  • allow SQLAlchemy logs to be disabled with an env variable
@kevinlul
Copy link
Collaborator

Sidecar logging proof-of-concept with a FIFO/named pipe:

version: "3.9"
services:
  primary:
    image: ubuntu:20.04
    command: bash -c 'set -euo pipefail;
      if [[ ! -p /var/log/app/logs.fifo ]]; then
         mkfifo /var/log/app/logs.fifo;
      fi;
      while true; do
        date -Is > /var/log/app/logs.fifo;
        echo `date -Is` Hello;
        sleep 5;
      done'
    volumes:
      - logs:/var/log/app
  sidecar:
    image: ubuntu:20.04
    command: tail -f /var/log/app/logs.fifo
    volumes:
      - logs:/var/log/app
    depends_on:
      - primary
volumes:
  logs:

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

No branches or pull requests

3 participants