Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
10378 Ansichten

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

Avatar
Verwerfen
Autor Beste Antwort

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.

Avatar
Verwerfen

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.

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Aug. 16
8922
1
Aug. 18
7626
5
Juli 24
38343
2
Okt. 22
4689
2
Jan. 22
3199