Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
4592 Widoki

I have put a

pdb.set_trace() at a point in my python function during Odoo development and Odoo keeps interrupting me with this message:

2015-10-27 22:13:18,404 7786 INFO db_test werkzeug: 127.0.0.1 - - [27/Oct/2015 22:13:18] "POST /longpolling/poll HTTP/1.1" 200 -



Awatar
Odrzuć

GREAT question title. I knew, because this happened to me, instantly how to help you without even needing to open your question.

Najlepsza odpowiedź

You could start your Odoo server with the parameter --no-xmlrpc. This will cause long-polling workers to not start and thus not log.

Example: ./odoo.py --no-xmlrpc

Documentation: \https://www.odoo.com/documentation/8.0/reference/cmdline.html

Awatar
Odrzuć
Najlepsza odpowiedź

Set WERKZEUG logging to a different level than INFO.

log_handler = werkzeug:CRITICAL
Awatar
Odrzuć
Najlepsza odpowiedź

I solve this starting server with --logfile=log.log


e.g.

./odoo.py -c YOUR_CONFIG_FILE --logfile=log.log

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 25
1288
0
sty 25
3390
1
sie 23
14685
change password Rozwiązane
1
sie 23
13313
1
lip 23
10343