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

OpenERP uses the python logging module which has documentation saying that logging to a single file from multiple processes is not supported [1]. When running OpenERP with --workers > 1 we are in such as situation.

Is it known to be safe in OpenERP, and why?

If not, how do people usually solve this issue?

[1] not enough karma to post links: search for Logging Cookbook in python 2.7 documentation

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Answering my own question, I believe logging to file with --workers > 1 is not safe, and log records can be lost.

Running using --syslog and configuring the log file with rsyslog.conf is safe.

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

How exactly does the --syslog parameter work?

see the --syslog parameter here: https://www.odoo.com/documentation/11.0/reference/cmdline.html

It looks like logrotate with workers is still unstable as of 11.0.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 16
8934
1
thg 8 18
7629
5
thg 7 24
38366
2
thg 10 22
4695
2
thg 1 22
3201