import logging
import app  # Assuming your_app.py contains the modified app definition

# Configure logging (optional, can use the same configuration as in app.py)
logging.basicConfig(filename='passenger_wsgi.log', level=logging.INFO, format='%(asctime)s %(levelname)s %(message)s')

def application(environ, start_response):
    logging.info("Received request")
    return app.streamlit_app(environ, start_response)