تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
10340 أدوات العرض

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
أغسطس 16
8892
1
أغسطس 18
7589
5
يوليو 24
38206
2
أكتوبر 22
4654
2
يناير 22
3153