跳至內容
選單
此問題已被標幟
4 回覆
4474 瀏覽次數

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 -



頭像
捨棄

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

最佳答案

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

頭像
捨棄
最佳答案

Set WERKZEUG logging to a different level than INFO.

log_handler = werkzeug:CRITICAL
頭像
捨棄
最佳答案

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


e.g.

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 25
1174
0
1月 25
3217
1
8月 23
14493
1
8月 23
13178
1
7月 23
10182