odoo/openerp/service
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
..
__init__.py [FIX] win32: use 'net' command for service start/stop operation 2013-01-07 17:23:02 +01:00
cron.py [IMP] cron: remove useless pooljobs and schedule_cron_jobs methods 2012-12-21 14:37:51 +01:00
http_server.py [REM] unnecessary parens 2012-12-14 13:38:03 +01:00
netrpc_server.py [REV] close_socket is back in netsvc.py 2012-12-10 14:21:33 +01:00
netrpc_socket.py manual merge of multicorn 2012-09-22 12:51:07 +02:00
security.py [IMP] Added missing vim mode lines 2011-11-22 09:58:48 +01:00
web_services.py [FIX] *: fix/rationalize db logging to avoid incorrect values during logging 2013-03-01 13:07:44 +01:00
websrv_lib.py [FIX] incorrect docstrings or docstring param names not matching actual param names 2012-12-14 14:07:58 +01:00
workers.py [FIX] workers no suicide on broken pipe 2013-02-09 18:29:32 +01:00
wsgi_server.py [FIX] *: fix/rationalize db logging to avoid incorrect values during logging 2013-03-01 13:07:44 +01:00