Re: [pylons-discuss] Waitress and logrotation / USR2 signal

2020-03-27 Thread Bert JW Regeer
Sure, waitress just uses python's logging library to send log messages, but it doesn't know anything about where it's configured to send those. That heavily depends on what your root logger is set to, and you can configure logging for individual waitress parts as necessary too. But waitress

Re: [pylons-discuss] Saving a lot of data to Postgresql database in Pyramid using SQLAlchemy

2020-03-27 Thread Theron Luhn
Parameters go in the URL. create_engine(‘postgresql://user:pass@server/dbname' ) See https://docs.sqlalchemy.org/en/13/core/engines.html > On Mar 20, 2020, at 6:41 PM, Emerson Barea wrote: > > Thank you Michael Merickel and Theron Luhn

Re: [pylons-discuss] Waitress and logrotation / USR2 signal

2020-03-27 Thread Mike Orr
I sometimes get log entries about worker threads that appear to come from Waitress. I'll see if I can find the configuration that suppressed them. On Thu, Mar 26, 2020 at 10:25 PM Bert JW Regeer wrote: > > Waitress does not do any logging on its own, and thus doesn't handle any > signals

Re: [pylons-discuss] Waitress and logrotation / USR2 signal

2020-03-27 Thread 'J G' via pylons-discuss
Thank you, Bert! As a replacement for the missing signal handling of Zope, there seem to be several valid alternatives without the need to restart the application: - have the process manager capture the logs - logrotate's `copytruncate` directive - Python's `WatchedFileHandler` One problem,