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

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.

相關帖文 回覆 瀏覽次數 活動
1
8月 16
9001
1
8月 18
7681
5
7月 24
38473
2
10月 22
4728
2
1月 22
3240