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

Fabulous interferes with logging level #17

Open
aarongorka opened this issue Jul 4, 2019 · 0 comments
Open

Fabulous interferes with logging level #17

aarongorka opened this issue Jul 4, 2019 · 0 comments

Comments

@aarongorka
Copy link

aarongorka commented Jul 4, 2019

Importing a module from fabulous (e.g. from fabulous import image as fab_image) causes my logging to disappear:

This is the Docker environment if you want to reproduce it exactly:

FROM python:3.7-alpine
ENV PYTHONUNBUFFERED=1  # doesn't have any effect
RUN pip3 install --no-cache-dir fabulous

docker-compose.yml:

version: '3.7'
services:
  logging_test:
    build: .
    volumes:
      - .:/work:Z
    working_dir: /work
#!/usr/bin/env python3
import logging
from fabulous import image as fab_image

logging.basicConfig(level=logging.INFO)

logging.info('Hello!')

docker-compose run --rm logging_test ./logging_test.py prints absolutely nothing. Removing the import makes it print to the terminal again.

I've also noticed that fabulous doesn't like the Docker TTY, as a docker run -it crashes calls to the fabulous text/image modules but docker-compose works.

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

1 participant