#!/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.
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:
docker-compose.yml:
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 butdocker-compose
works.