INNER CODE UNIT · Python

Logger

Mailu/Mailu · core/admin/mailu/__init__.py:28

class Logger(glogging.Logger):
    def setup(self, cfg):
        super().setup(cfg)

        # Add filters to Gunicorn logger
        logger = logging.getLogger("gunicorn.access")
        logger.addFilter(NoPingFilter(logger.getEffectiveLevel()>logging.DEBUG))

def create_app_from_config(config):
    """ Create a new application based on the given configuration
    """
    app = flask.Flask(__name__, static_folder='static', static_url_path='/static')
    app.cli.add_command(manage.mailu)

    # Bootstrap is used for error display and flash messages
    app.bootstrap = flask_bootstrap.Bootstrap(app)

    # Initialize application extensions

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…