File size: 329 Bytes
10d6a86
 
6d694e9
10d6a86
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import os, logging

environment = os.getenv("ENVIRONMENT", "dev") 
if environment == "dev":
    logger = logging.getLogger("uvicorn")
else:
    logger = lambda x: _
    # we should log also in production  TODO 
    # check how it works on HuggingFace, if possible
    # because we don't have access to the container's file system