clamsproject / clams-python

CLAMS SDK for python
http://sdk.clams.ai/
Apache License 2.0
4 stars 1 forks source link

Log to stdout #183

Closed mrharpo closed 1 year ago

mrharpo commented 1 year ago

New Feature Summary

Production Logs

The production instances do not log anything at this time.

The Restifier should include accesslog and errorlog in the options:

                self.options = {
                    'bind': f'{host}:{port}',
                    'workers': number_of_workers(),
                    'threads': 2,
                    'accesslog': '-',
                    'errorlog': '-',
                }

https://github.com/clamsproject/clams-python/blob/75ea23aae289b883f4062a7e1f7bf04b234c8966/clams/restify/__init__.py#L59C1-L63C18

Related

No response

Alternatives

No response

Additional context

https://docs.gunicorn.org/en/stable/settings.html#errorlog