Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
10284 Weergaven

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
Annuleer
Auteur Beste antwoord

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
Annuleer

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.

Gerelateerde posts Antwoorden Weergaven Activiteit
1
aug. 16
8858
1
aug. 18
7539
5
jul. 24
38083
2
okt. 22
4595
2
jan. 22
3096