FastAPI - Error Handling
You wrote this code but no error logs appear when exceptions happen. What is the likely problem?
import logging
logger = logging.getLogger("app")
try:
1 / 0
except Exception as e:
logger.error("Error occurred", exc_info=True)