Commit Graph

119 Commits

Author SHA1 Message Date
Antony Lesuisse e69b086ecd [FIX] logging, pg logging use thread db
bzr revid: al@openerp.com-20140412134728-vzn9247twgyfbcid
2014-04-12 15:47:28 +02:00
Antony Lesuisse e73230d0fc ir_logging fix logger names
bzr revid: al@openerp.com-20140320000912-1a5hngnw8ilq22k8
2014-03-20 01:09:12 +01:00
Antony Lesuisse 6e4db0a0a6 ir_logging fix config option
bzr revid: al@openerp.com-20140320000524-gs98xy6iqh2ceev6
2014-03-20 01:05:24 +01:00
Antony Lesuisse 666f4d0801 [MERGE] trunk
bzr revid: al@openerp.com-20140319235117-7trt1y3927mml13u
2014-03-20 00:51:17 +01:00
Antony Lesuisse 48d3befa07 ir_logging disabled by default
bzr revid: al@openerp.com-20140319234542-jsmxchx7tuv13e13
2014-03-20 00:45:42 +01:00
Antony Lesuisse aa7d42acfc ir_logging fix msg, add uid in form view
bzr revid: al@openerp.com-20140316194328-3tooio3km8ev26wj
2014-03-16 20:43:28 +01:00
Antony Lesuisse 58fb28746a ir_logging, cleanup and minimize merge diff
bzr revid: al@openerp.com-20140316192223-gfxzbo83j5hpm527
2014-03-16 20:22:23 +01:00
Antony Lesuisse eaacd8a4d8 ir_logging make it work, and make it usable
bzr revid: al@openerp.com-20140316191622-l59vkjeu2e8nbh75
2014-03-16 20:16:22 +01:00
Antony Lesuisse e9d047e611 sql loggin cleanups
- prepare for netsvc will be renamed to logging
- move back log from http.py has it's used by the cron
- move sql handler to netsvc, simplify to use sql_db
- remove unused handler
- close plaform specific #ifdef pandora's box

bzr revid: al@openerp.com-20140316182933-jkcji9yqfbsokcmg
2014-03-16 19:29:33 +01:00
Christophe Simonis 1c3ee251f0 [MERGE] forward port of branch 7.0 up to revid 5270 chs@openerp.com-20140403084524-9rb174osjrbmhgwc
bzr revid: chs@openerp.com-20140402083506-w4cywcf0kxxx9xmk
bzr revid: chs@openerp.com-20140312174526-a5rhh83g0fw8djuc
bzr revid: chs@openerp.com-20140318105837-53vsx5g7fm517cuc
bzr revid: dle@openerp.com-20140326092548-bu4bqinhvco8j5wj
bzr revid: chs@openerp.com-20140402092735-3a23yjl169vvt0iv
bzr revid: chs@openerp.com-20140402112825-ky8rcb3p467ikitc
bzr revid: chs@openerp.com-20140403084808-slnj7uis17kwi9js
2014-04-03 10:48:08 +02:00
Christophe Simonis 5873f0abe6 [FIX] add the logging handler only to the root logger. let the loggers propagate to allow more than one handler
bzr revid: chs@openerp.com-20140312171819-bnj3md07w4le2m7m
2014-03-12 18:18:19 +01:00
Stephane Wirtel 047d071a48 [IMP] Add a new Logging Handler, where we will store in the database of OpenERP.
this database can be overrided via the --log-pgsql-database

bzr revid: stw@openerp.com-20140228161147-s9nnrfq2tc94vq5p
2014-02-28 17:11:47 +01:00
Stephane Wirtel 855836e96e [IMP] Move the netsvc.dispatch_rpc function from netsvc to openerp.http
bzr revid: stw@openerp.com-20140227125648-kunaefr22y28honx
2014-02-27 13:56:48 +01:00
Thibault Delavallée 1d5068b63e [FORWARD] Forward port of server 7.0 until revision 4988
bzr revid: tde@openerp.com-20130528102733-bsszxp6nvy8yws3t
2013-05-28 12:27:33 +02:00
Martin Trigaux 8ecd022348 [IMP] clean permissions and shebang in files
bzr revid: mat@openerp.com-20130514103333-puuj4kmxq3bwzwec
2013-05-14 12:33:33 +02:00
Vo Minh Thu fc4d9c8633 [REF] netsvc: always use psutil: it is needed in service.workers (and listed in setup.py).
bzr revid: vmt@openerp.com-20130328110605-2kw367x1om7wzhvm
2013-03-28 12:06:05 +01:00
Vo Minh Thu 4ed7ec95b7 [MERGE] removed LocalService("workflow"), Logger class, and TEST log level.
bzr revid: vmt@openerp.com-20130327170639-uamgg7shlmtxgpxv
2013-03-27 18:06:39 +01:00
Vo Minh Thu 23d672dfc3 [MERGE] reports: make it possible to use only XML declaration, even with custom parsers.
This makes report registration more uniform, and report rendering be possible
through the ORM (and thus the model service, instead of the report service).

To register a report, always use the database, i.e. a <report> tag within an
XML file. The custom parser, if any, will be specified in the database.
Previously specify a custom parser, the report was declared in Python.

Each model exposes a print_report() method, which will take the report name (as
many report can be defined on a single model) in argument.

bzr revid: vmt@openerp.com-20130327161129-6e7jz7l3lx7z1t18
2013-03-27 17:11:29 +01:00
Vo Minh Thu 92aace0c13 [DOC] netsvc: typo in docstring.
bzr revid: vmt@openerp.com-20130327155353-5eo7r95e7gbw9c4l
2013-03-27 16:53:53 +01:00
Vo Minh Thu 4ebedfc25d [REF] netsvc: it seems the re-exports from loglevels are no longer necessary.
bzr revid: vmt@openerp.com-20130326163336-61jh2efakhg0gmoi
2013-03-26 17:33:36 +01:00
Vo Minh Thu c313b4073a [REF] logging: removed pseudo log-level TEST.
When --test-enable is used, it is expected that test output is visible,
thus using log-level INFO is natural.

On the down side you lose the nice blue hint that tests did actually
run when --log-level test was given.

bzr revid: vmt@openerp.com-20130326155844-83e2tcqokvblr0ln
2013-03-26 16:58:44 +01:00
Vo Minh Thu 464af881bf [IMP] netsvc: LocalService deprecation now guarded via openerp.conf.deprecation.
bzr revid: vmt@openerp.com-20130325131245-9o5uizn6v4r8irc3
2013-03-25 14:12:45 +01:00
Vo Minh Thu 6e43e6c4e1 [FIX] reports: now that _register_all() has been removed, LocalService() must be modified to do the lookup in the database too.
bzr revid: vmt@openerp.com-20130325123359-szxx6a0n06tha70p
2013-03-25 13:33:59 +01:00
Vo Minh Thu 1683fc7abd [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130322135152-1hdlptwj1qqqfz4z
2013-03-22 14:51:52 +01:00
Xavier Morel 9476f07954 [IMP] only concatenate logging configuration subsequences once
bzr revid: xmo@openerp.com-20130319163708-s4mxsdg3f9xksr07
2013-03-19 17:37:08 +01:00
Xavier Morel 7c2b70eb46 [IMP] declaratively map openerp logging levels to logging, move default logging conf to 'constant'
bzr revid: xmo@openerp.com-20130319163606-un9ogalwfk3eykc8
2013-03-19 17:36:06 +01:00
Xavier Morel db6b6480f7 [IMP] switch workflows to standard logging (silenced by default), remove wkf_logs
bzr revid: xmo@openerp.com-20130319163133-3n1k1hgooddzxntz
2013-03-19 17:31:33 +01:00
Vo Minh Thu f1adca94c0 [MERGE] netsvc/service.model: added missing/removed unnecessary `except` clauses.
bzr revid: vmt@openerp.com-20130225155828-a364gk3ii2prxe0b
2013-02-25 16:58:28 +01:00
Vo Minh Thu 5c9b5e4ac3 [IMP] netsvc: slightly more explicit warning when using LocalService().
bzr revid: vmt@openerp.com-20130225133532-o3m2e6vvzcmdeziv
2013-02-25 14:35:32 +01:00
Vo Minh Thu a2f5e9d201 [IMP] ir_actions: removed forgotten print statements.
bzr revid: vmt@openerp.com-20130222151702-d73geh539mb99m5b
2013-02-22 16:17:02 +01:00
Vo Minh Thu efb97705f5 [IMP] LocalService(): re-allow for a few moment (so addons can be updated a bit later).
bzr revid: vmt@openerp.com-20130222145226-dqu6e612oi3yalow
2013-02-22 15:52:26 +01:00
Vo Minh Thu 729d969fd9 [IMP] report: use openerp.report.render_report() instead of LocalService().create().
bzr revid: vmt@openerp.com-20130222124801-zhhbw2bgghhf6rg6
2013-02-22 13:48:01 +01:00
Vo Minh Thu 0cb53890df [IMP] report: reports with custom parsers can be declared in XML files.
bzr revid: vmt@openerp.com-20130222093428-f1isxxqlbaj7uhuo
2013-02-22 10:34:28 +01:00
Skrillex de03f4d670 [REM] netrpc: KILL EVERYBODY
bzr revid: vmt@openerp.com-20130221121825-dvpacxajwztslukj
2013-02-21 13:18:25 +01:00
Vo Minh Thu 9412351315 [IMP] Only unhandled exceptions are logged to the console by the netsvc layer.
bzr revid: vmt@openerp.com-20130220115337-6319hshm4vfwlr1o
2013-02-20 12:53:37 +01:00
Raphael Collet e76befd6c6 [MERGE] trunk-service-thu (remove the class openerp.netsvc.ExportService)
bzr revid: rco@openerp.com-20130212154230-y54s2rbetllwnh4q
2013-02-12 16:42:30 +01:00
Vo Minh Thu c99c4091ce [REM] Deleted .apidoc lines.
They were probably used by some tools. How sad.

bzr revid: vmt@openerp.com-20130212142410-zqdjd8jw3gtvxab0
2013-02-12 15:24:10 +01:00
Vo Minh Thu 174b5cb889 [FIX+DOC] added doc for deployment under mod_wsgi + a fix for that use case.
bzr revid: vmt@openerp.com-20130205172341-pwh0z4go2xsdz7n1
2013-02-05 18:23:41 +01:00
Vo Minh Thu c8ffd1cedc [REF] service: netsvc.Service is removed. LocalService(object_proxy) is never used so it is removed.
bzr revid: vmt@openerp.com-20130201112232-2k8geufmryx6p249
2013-02-01 12:22:32 +01:00
Vo Minh Thu b303bfe5a4 [REF] service: A new openerp.service.rpc decorator is provided to replace the ExportService class.
bzr revid: vmt@openerp.com-20130131131051-5189susswxlshp29
2013-01-31 14:10:51 +01:00
Vo Minh Thu 2910d5b3f6 [REF] netsvc: close_socket is only used in wsgi_server, so move it there.
bzr revid: vmt@openerp.com-20130130174229-myvtydv03iikt6k3
2013-01-30 18:42:29 +01:00
Vo Minh Thu 8b5e317eab [REF] service: workflow is not a service
- simply use openerp.workflow instead of the funky netsvc.LocalService
- the funky netsvc.LocalService is still available though
- all the methods are now simple function (the self was unnecessary)

bzr revid: vmt@openerp.com-20130130173759-xxgyafxqzp3okz3c
2013-01-30 18:37:59 +01:00
Vo Minh Thu 2c2b6d9506 [REF] service: killed the ExportService concept.
bzr revid: vmt@openerp.com-20130130165812-0hzfnfudi8im0usb
2013-01-30 17:58:12 +01:00
Vo Minh Thu 4aacad4abf [REF] services: moved the report service to openerp.service.report.
bzr revid: vmt@openerp.com-20130130155624-u3vfqwd3komo3wfs
2013-01-30 16:56:24 +01:00
Vo Minh Thu 796bb74426 [REF] services: moved the common service to openerp.service.common.
bzr revid: vmt@openerp.com-20130130151434-1qoe9jhefge48ag3
2013-01-30 16:14:34 +01:00
Vo Minh Thu 93cdfeb86a [REF] services: moved the object service to openerp.service.model.
bzr revid: vmt@openerp.com-20130130150207-fz1ueou8prul05qa
2013-01-30 16:02:07 +01:00
Vo Minh Thu 8d23b8a63a [REF] services: moved the db service to openerp.service.db.
bzr revid: vmt@openerp.com-20130130145616-5hijxp9qib7i1uip
2013-01-30 15:56:16 +01:00
Vo Minh Thu 674056c4a5 [REF] services: somewhat clean use of openerp exceptions.
bzr revid: vmt@openerp.com-20130130134451-yft2y56hkpnoxgwa
2013-01-30 14:44:51 +01:00
Vo Minh Thu 19b0315f68 [REF] model service: removed the unneeded object_service class.
bzr revid: vmt@openerp.com-20130130113646-pviw5d6gnohk7wrb
2013-01-30 12:36:46 +01:00
Antony Lesuisse 551e6bc78d [IMP] memory usage logging
bzr revid: al@openerp.com-20121229125912-rlt4g0b6xhajqxwm
2012-12-29 13:59:12 +01:00