Pgx: Include context in logging interface

Created on 20 Jun 2018  路  2Comments  路  Source: jackc/pgx

I think it is useful if the logging interface accepts the context (and context.Background if none was provided). In our case we want to add the request id to the logs (which resides in the context). What do you think? Can I open a PR for this?

Most helpful comment

This is now in v4.

All 2 comments

If it can be done without a breaking change that sounds great.

This is now in v4.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

badoet picture badoet  路  10Comments

rkintzi picture rkintzi  路  5Comments

jeromer picture jeromer  路  11Comments

MOZGIII picture MOZGIII  路  4Comments

zargex picture zargex  路  8Comments