Draft: Introduce lava database profiling logger
It tracks time in nanoseconds for each query and the lava stack which made the query.
Only activated if lava_server.dbtrace
logger is set to DEBUG.
Example LOGGING configuration to activate:
"lava_server.dbtrace": {
"handlers": ["console"],
"level": "DEBUG",
"propagate": False,
},
Mostly useful with the new JSON formatter to process logs.
Unless lava_server.dbtrace
logger is set to DEBUG there is no performance impact.