Skip to content

Inaccurate uwsgi enable-threads error logging #84

@dougkeen

Description

@dougkeen

Right now, if you run the client in a uwsgi environment without the enable-threads option set, this message gets error logged:

The LaunchDarkly client requires the enable-threads option be passed to uWSGI.

However, the uwsgi config could not have enable-threads explicitly set, but rather have threads implicitly enabled by setting a threads option.

By default the Python plugin does not initialize the GIL. This means your app-generated threads will not run. If you need threads, remember to enable them with enable-threads. Running uWSGI in multithreading mode (with the threads options) will automatically enable threading support. This “strange” default behaviour is for performance reasons, no shame in that.

In the case where enable-threads is not specified in the uwsgi config, but threads is, the LaunchDarkly client will incorrectly log the above error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions