Skip to content

'accesslog' settings in SENTRY_WEB_OPTIONS is disabled by the default LOGGING config in conf/server.py #1095

@mrkschan

Description

@mrkschan

I was trying to enable access log on gunicorn and adding 'accesslog' option to SENTRY_WEB_OPTIONS.

SENTRY_WEB_OPTIONS = {
    'workers': 16,  # the number of gunicorn workers
    'limit_request_line': 0,  # required for raven-js
    'secure_scheme_headers': {'X-FORWARDED-PROTO': 'https'},
    'accesslog': '-',   # access log to stderr
}

This settings alone cannot achieve my purpose since the logging dictconfig in sentry/conf/server.py used 'disable_existing_loggers' = True.

Thus, I have to add LOGGING['disable_existing_loggers'] = False to my sentry.conf.py in order to "re-enable" the loggers in gunicorn.

Is this the expected behavior or the gunicorn log config is ignored by accident?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions