Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
10420 มุมมอง

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

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 16
8956
1
ส.ค. 18
7641
More Detailed Odoo Logs? แก้ไขแล้ว
5
ก.ค. 24
38389
2
ต.ค. 22
4703
2
ม.ค. 22
3210