The permissions on this repository are being updated. This may take a while.
During this time, you or some of the project's contributors may not be able
to push to this repository.
Ticket 49029 - improve internal operations logging
Description: This patch uses "local thread storage" to keep track of
the connection and op id numbers for internal operations.
This makes it easier to follow the access logs and know
what connection is actually doing what.
It also maintains its on operation id count for each
internal operation. This adds complexity once internal ops
start nesting (plugins calling plugins). To handle this
two LTS variables were added to keep track of the nested
level or count, and one to know once a series of nested
operations are finally unnested/complete. This is needed
to maintain the correct internal operation id counter correct
and in sequence.
Also organized the local thread storage initialization into
a single function - there was no need to have separate
functions.
Thanks lkrispenz for improving the logging format, and
providing the initial patch this was all based off of.
https://pagure.io/389-ds-base/issue/49029
Reviewed by: tbordaz & lkrispen(Thanks!)