You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im looking to keep track of all statements executed. right now iecho=True outputs to logging info.
if self._echo:
logger.info(f"[{round((end - start) * 1000, 2)}ms] {query}")
would it be possible in future to set it to logger.debug instead?
would be very useful if you could pass in a callable for returning the exact statement executed on every statement. which would return a float for time taken and string of statement executed.
this would allow for things like being able to "slow query" log applications n stuff.
im looking to keep track of all statements executed. right now iecho=True outputs to logging info.
would it be possible in future to set it to logger.debug instead?
would be very useful if you could pass in a callable for returning the exact statement executed on every statement. which would return a float for time taken and string of statement executed.
this would allow for things like being able to "slow query" log applications n stuff.
then in cursors.pyx
wouldn't break backwards compatibility since echo=True could just be a kickstarter to add a log.info() callable if no callable is supplied
The text was updated successfully, but these errors were encountered: