Closed tflorac closed 4 years ago
That DEBUG level logging is indicating that one particular driver is not available. In this case, it's the gevent psycopg2
driver. gevent
is installed, and psycopg2
is installed, but the process has not been monkey-patched by gevent, nor has psycopg2's coroutine support been manually activated with a custom wait callback.
This occurs when RelStorage is asked to automatically select the best driver to use. It goes through the list of possibilities until it finds one that works. There's DEBUG logging for each one that doesn't work, which can be invaluable figuring out why the driver you expected isn't the driver that gets picked.
If you explicitly choose a driver (driver psycopg2
) in your RelStorage configuration, there's no need to go through the list of possibilities so this shouldn't be logged.
Hi, I'm trying to migrate to RelStorage 3.0 on a Pyramid application using Python 3.5, psycopg2 driver and PostgreSQL database. On application startup, I can see an error message:
Can you explain what this "wait callback" is?
Best regards, Thierry