Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
11874 Lượt xem

In OpenERP 6 we could specify a different file for logging Web access and errors.

In OpenERP 7 this is all in one file and I cannot disable the Web logs, which is very unpractical for me.

How can I disable or at least separate the web logs?

Ảnh đại diện
Huỷ bỏ

It would be a blessing to also send openerp.service.cron entries elsewhere.

Câu trả lời hay nhất

This work for me, but I cannot publish the link because my "Karma" is low, check in the search of Launchpad OpenERP Server Answers page this: "log_handler settings in the configuration", the first answers/response is the solution.

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks for the help Mariano, that did it for me; for others needing the solution, the link to the Launchpad answer is https://answers.launchpad.net/openobject-server/+question/194030 . The quick solution is to use the variable without the square brackets([]) and quotes, e.g, a correct configuration is log_handler = werkzeug:CRITICAL,openerp.netsvc.rpc.response:DEBUG.

Thanks for this config file setting. The equivalent command line option does not work, --log-handler=werkz... gives "ValueError: too many values to unpack"

Tác giả

Have you tried putting the options with quotes when using command line?

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 25
1419
1
thg 5 25
879
2
thg 5 25
1529
1
thg 7 24
3196
0
thg 8 24
341