odoo/openerp/addons
Olivier Dony db81edc287 [FIX] *: fix/rationalize db logging to avoid incorrect values during logging
The setting/clearing of the tracking were not done
consistently, causing log messages that appeared
to come from one database while coming from another
one or none at all.

The tracker is now set at the earliest points
of request handling where we can:
- in web client, when creating WebRequests (dbname, uid)
- at RPC dispatching in server (uid)
- at cron job acquisition in CronWorker (dbname)
- at Registry acquisition in RegistryManager (dbname)


The tracker is cleared at the very entrance of
the request in the WSGI `application`, ensuring
that no logging is produced with an obsolete
db name. (It cannot be cleared at the end of
the request handling because the werkzeug
wrapper outputs more logging afterwards)

bzr revid: odo@openerp.com-20130301120744-jfitcmze2jldecod
2013-03-01 13:07:44 +01:00
..
base [FIX] *: fix/rationalize db logging to avoid incorrect values during logging 2013-03-01 13:07:44 +01:00
__init__.py [IMP] openerp.addons: openerp.addons is used instead of 2012-01-09 13:41:20 +01:00
base_quality_interrogation.py [MERGE] From trunk (second time) 2012-12-17 15:47:53 +01:00