Antony Lesuisse
aeaf7ef914
[FIX] logging: dont use color in windows cmd
...
windows cmd.exe terminal doesnt display them correctly so escape sequences end
up uselessly wasting some of the precious 80 char wide screen estate.
2015-01-09 01:45:41 +01:00
yingliu4203
fb4db6c938
[FIX] Packaging: Wndows: wrong handler used when logging to file
2014-09-19 11:17:13 +02:00
Christophe Simonis
415525cecc
[FIX] allow `--log-db` to connect to another postgresql server than the one setted in config
2014-08-25 18:52:50 +02:00
Antony Lesuisse
f9e24e1918
[IMP] module loading and tests profiling
...
Add a loglevel 25 to log some INFO to runbot
Add timers for loading and testing
Silence empty test suite
ir_logging use relative pathname, warning this doesnt work for --addons-path modules yet.
2014-06-29 18:58:15 +02:00
Christophe Simonis
0e595c4186
[FIX] werkzeug logging respect "--log-level" setting for warn, error and critical levels
2014-06-22 11:44:30 +02:00
Christophe Simonis
eedb831c0d
[FIX] logging PostgreSQLHandler: mute sql_db logger to avoid logging loop if db connection or query failed
2014-06-10 16:11:11 +02:00
Christophe Simonis
a7c2125735
[MERGE] forward port of branch saas-4 up to 6b8e972
2014-06-10 13:15:46 +02:00
Christophe Simonis
6eacf91671
[FIX] logging PostgreSQLHandler: do not insert {create,write}_uid
...
As logs can be stored in any database, we can't insert create_uid and write_uid as it
refer to the current database not the logging one, where FK may not match
2014-06-10 11:15:52 +02:00
Christophe Simonis
b4283f0271
[FIX] logging PostgreSQLHandler: expand message + use contextmanagers to handle exceptions and cursor
2014-05-28 11:43:24 +02:00
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