log_connexion
This commit is contained in:
parent
9ebe79d533
commit
27031dbf0e
|
@ -260,6 +260,15 @@ class PublishDispatcher:
|
||||||
False,
|
False,
|
||||||
False,
|
False,
|
||||||
)
|
)
|
||||||
|
async with self.pool.acquire() as log_connection:
|
||||||
|
await log_connection.set_type_codec(
|
||||||
|
'json',
|
||||||
|
encoder=dumps,
|
||||||
|
decoder=loads,
|
||||||
|
schema='pg_catalog'
|
||||||
|
)
|
||||||
|
async with log_connection.transaction():
|
||||||
|
risotto_context.log_connection = log_connection
|
||||||
async with self.pool.acquire() as connection:
|
async with self.pool.acquire() as connection:
|
||||||
await connection.set_type_codec(
|
await connection.set_type_codec(
|
||||||
'json',
|
'json',
|
||||||
|
|
Loading…
Reference in New Issue